Jöran Karl
cd0dc9a701
options: Add truecolor
to control the usage ( #2867 )
...
- `auto`: enable usage of true color if it is supported, otherwise disable it
- `on`: force usage of true color
- `off`: disable true color usage
Co-authored-by: Dmytro Maluka <dmitrymaluka@gmail.com>
2025-05-26 18:25:07 +02:00
Codemanticism
bf255b6c35
rust.yaml: Add the keyword "union" ( #3759 )
Build and Test / test (1.19.x, macos-latest) (push) Has been cancelled
Build and Test / test (1.19.x, ubuntu-latest) (push) Has been cancelled
Build and Test / test (1.19.x, windows-latest) (push) Has been cancelled
Build and Test / test (1.23.x, macos-latest) (push) Has been cancelled
Build and Test / test (1.23.x, ubuntu-latest) (push) Has been cancelled
Build and Test / test (1.23.x, windows-latest) (push) Has been cancelled
2025-05-25 12:59:59 +02:00
Shinsuke Nashimoto
91832d0016
Fixed a broken colorscheme (sunny-day) due to a typo ( #3735 )
Build and Test / test (1.19.x, macos-latest) (push) Has been cancelled
Build and Test / test (1.19.x, ubuntu-latest) (push) Has been cancelled
Build and Test / test (1.19.x, windows-latest) (push) Has been cancelled
Build and Test / test (1.23.x, macos-latest) (push) Has been cancelled
Build and Test / test (1.23.x, ubuntu-latest) (push) Has been cancelled
Build and Test / test (1.23.x, windows-latest) (push) Has been cancelled
2025-05-06 20:38:45 +02:00
cutelisp
b61c8a4e1a
Deleted duplicated line ( #3728 )
Build and Test / test (1.19.x, macos-latest) (push) Has been cancelled
Build and Test / test (1.19.x, ubuntu-latest) (push) Has been cancelled
Build and Test / test (1.19.x, windows-latest) (push) Has been cancelled
Build and Test / test (1.23.x, macos-latest) (push) Has been cancelled
Build and Test / test (1.23.x, ubuntu-latest) (push) Has been cancelled
Build and Test / test (1.23.x, windows-latest) (push) Has been cancelled
2025-04-28 19:55:03 +02:00
Dmytro Maluka
1bd86a8f79
Build constraints: switch to new syntax
...
Make gofmt happy about that.
2025-03-24 22:54:32 +01:00
Jöran Karl
02e69dddbe
doc: syntax: Add hint about incompatibilities to previous versions
2025-03-15 17:45:45 +01:00
Sertonix
78f0a9cd30
doc: syntax: remove syntax_checker.go
from README.md
...
The patch is taken from:
https://github.com/zyedidia/micro/pull/2738
The mentioned file was already removed with the following commit:
fe3186ba9d
The `micro` binary itself takes now care of validating the syntax definitions
and informs about possible issues.
2025-03-15 14:58:14 +01:00
Dmytro Maluka
0b75031ac5
syntax: asm: highlight C-like comments ( #3696 )
...
Different assemblers have different syntaxes for comments: ";", "#",
"!", "|", "@", "*" and finally C-like comments "//" and "/* ... */".
Micro currently highlights only ";". This is causing various problems
with broken highlighting with other types of comments (i.e. those not
recognized by micro as comments), when the text in those comments
contains special characters, causing wrong highlighting of text after
them.
On the other hand, highlighting comments like "#", "|" etc would cause
conflicts with other syntax elements, e.g. constants in ARM assembly,
preprocessor directives, arithmetic expressions etc.
So let's highlight at least C-like comments. They are quite commonly
used and they are not so likely to cause conflicts with other syntax
elements.
2025-03-15 14:29:45 +01:00
Mikko
7d16dcdaa6
List more bindable actions in help keybindings
( #3685 )
Build and Test / test (1.19.x, macos-latest) (push) Has been cancelled
Build and Test / test (1.19.x, ubuntu-latest) (push) Has been cancelled
Build and Test / test (1.19.x, windows-latest) (push) Has been cancelled
Build and Test / test (1.23.x, macos-latest) (push) Has been cancelled
Build and Test / test (1.23.x, ubuntu-latest) (push) Has been cancelled
Build and Test / test (1.23.x, windows-latest) (push) Has been cancelled
2025-03-11 07:35:24 +01:00
Jöran Karl
98356765c1
Merge pull request #3273 from JoeKar/fix/save-atomically
...
Build and Test / test (1.19.x, macos-latest) (push) Has been cancelled
Build and Test / test (1.19.x, ubuntu-latest) (push) Has been cancelled
Build and Test / test (1.19.x, windows-latest) (push) Has been cancelled
Build and Test / test (1.23.x, macos-latest) (push) Has been cancelled
Build and Test / test (1.23.x, ubuntu-latest) (push) Has been cancelled
Build and Test / test (1.23.x, windows-latest) (push) Has been cancelled
save: Perform write process safe
2025-03-08 14:04:41 +01:00
Dmytro Maluka
2ae9812f47
Merge pull request #3673 from niten94/status-pass-repodir
...
Build and Test / test (1.19.x, macos-latest) (push) Has been cancelled
Build and Test / test (1.19.x, ubuntu-latest) (push) Has been cancelled
Build and Test / test (1.19.x, windows-latest) (push) Has been cancelled
Build and Test / test (1.23.x, macos-latest) (push) Has been cancelled
Build and Test / test (1.23.x, ubuntu-latest) (push) Has been cancelled
Build and Test / test (1.23.x, windows-latest) (push) Has been cancelled
`status.lua`: Display commit and branch of repository where file is located
2025-03-04 20:15:23 +01:00
niten94
85e2b3bd86
status.lua: Display hash and branch of file
...
Return current commit hash and branch of repository where file in buffer
is located instead of current directory.
2025-03-02 09:40:27 +08:00
edwloef
3c68655f33
add syntax highlighting for new rust keywords and types ( #3677 )
Build and Test / test (1.19.x, macos-latest) (push) Has been cancelled
Build and Test / test (1.19.x, ubuntu-latest) (push) Has been cancelled
Build and Test / test (1.19.x, windows-latest) (push) Has been cancelled
Build and Test / test (1.23.x, macos-latest) (push) Has been cancelled
Build and Test / test (1.23.x, ubuntu-latest) (push) Has been cancelled
Build and Test / test (1.23.x, windows-latest) (push) Has been cancelled
2025-03-01 13:58:30 +01:00
Jöran Karl
6e8daa117a
ioutil: Remove deprecated functions where possible
2025-02-28 18:57:53 +01:00
niten94
0985d2cadd
sh.yaml: Match parameter expansions with braces using \w
2025-02-23 11:39:11 +08:00
niten94
d992c606c5
status.lua: Move import lines to beginning of file
2025-02-15 23:17:33 +08:00
niten94
4abd966a99
sh.yaml: Match valid parameter expansions without braces
...
Match parameter expansions with valid name only in shell syntax file
when there are no braces.
2025-02-15 07:54:22 +08:00
Andriamanitra
b9f1fc8da2
add missing linters to help linter
2025-02-07 23:56:25 +02:00
magneticminou
728526682e
plugin: linter: add ruff
to documentation
2025-02-07 14:12:29 -03:00
magneticminou
c105c940fe
plugin: linter: change in ruff
configuration
...
Use `--output-format concise` as suggested to get exact column of error
Co-authored-by: Mikko <Andriamanitra@users.noreply.github.com>
2025-02-06 19:28:47 -03:00
magneticminou
cdc9ab17f2
plugin: linter: add ruff
to default configuration.
2025-02-06 17:05:04 -03:00
usfbih8u
b432bb7cfa
docs: remove duplicated line ( #3647 )
Build and Test / test (1.19.x, macos-latest) (push) Has been cancelled
Build and Test / test (1.19.x, ubuntu-latest) (push) Has been cancelled
Build and Test / test (1.19.x, windows-latest) (push) Has been cancelled
Build and Test / test (1.23.x, macos-latest) (push) Has been cancelled
Build and Test / test (1.23.x, ubuntu-latest) (push) Has been cancelled
Build and Test / test (1.23.x, windows-latest) (push) Has been cancelled
2025-02-01 09:41:25 +01:00
Jöran Karl
e4b0ad7107
Merge pull request #3620 from JoeKar/feature/cursor-overwrite-indicator
...
Build and Test / test (1.19.x, macos-latest) (push) Waiting to run
Build and Test / test (1.19.x, ubuntu-latest) (push) Waiting to run
Build and Test / test (1.19.x, windows-latest) (push) Waiting to run
Build and Test / test (1.23.x, macos-latest) (push) Waiting to run
Build and Test / test (1.23.x, ubuntu-latest) (push) Waiting to run
Build and Test / test (1.23.x, windows-latest) (push) Waiting to run
statusline: Provide `overwrite` mode indicator
2025-01-31 17:59:36 +01:00
Jöran Karl
57a6e81ddb
statusline: Provide overwrite
mode indicator
2025-01-30 20:19:37 +01:00
Jöran Karl
5ee7fb6014
Merge pull request #3576 from niten94/optmd-quote-sort
...
Build and Test / test (1.19.x, macos-latest) (push) Has been cancelled
Build and Test / test (1.19.x, ubuntu-latest) (push) Has been cancelled
Build and Test / test (1.19.x, windows-latest) (push) Has been cancelled
Build and Test / test (1.23.x, macos-latest) (push) Has been cancelled
Build and Test / test (1.23.x, ubuntu-latest) (push) Has been cancelled
Build and Test / test (1.23.x, windows-latest) (push) Has been cancelled
`options.md`: Add, sort entries and adjust formatting
2025-01-29 17:13:53 +01:00
Dmytro Maluka
6309136322
Adjust formatting of colorscheme option description
2025-01-21 17:26:42 +08:00
niten94
9e46a38536
Insert few parts in options.md in backticks
2025-01-21 17:23:44 +08:00
matthias314
f5debdf8fe
ignore quoted and escaped characters when splitting keybindings into actions ( #3612 )
Build and Test / test (1.19.x, macos-latest) (push) Has been cancelled
Build and Test / test (1.19.x, ubuntu-latest) (push) Has been cancelled
Build and Test / test (1.19.x, windows-latest) (push) Has been cancelled
Build and Test / test (1.23.x, macos-latest) (push) Has been cancelled
Build and Test / test (1.23.x, ubuntu-latest) (push) Has been cancelled
Build and Test / test (1.23.x, windows-latest) (push) Has been cancelled
2025-01-20 20:28:38 +01:00
niten94
4377e56e7e
Add, sort options in list, default JSON in options.md
2025-01-19 21:34:38 +08:00
Antoine Beaubien
9b3f7ff240
Update options.md ( #3615 )
Build and Test / test (1.19.x, macos-latest) (push) Has been cancelled
Build and Test / test (1.19.x, ubuntu-latest) (push) Has been cancelled
Build and Test / test (1.19.x, windows-latest) (push) Has been cancelled
Build and Test / test (1.23.x, macos-latest) (push) Has been cancelled
Build and Test / test (1.23.x, ubuntu-latest) (push) Has been cancelled
Build and Test / test (1.23.x, windows-latest) (push) Has been cancelled
2025-01-19 13:07:48 +01:00
Jöran Karl
d1f54ea2a4
plugin: linter: Remove the forced C++14 standard to keep GCCs default
2024-12-31 13:27:38 +01:00
Jöran Karl
6b21fc5f92
plugin: linter: Invoke g++ for c++ instead of gcc
2024-12-31 13:27:38 +01:00
Jöran Karl
de84da068d
plugin: linter: Move file type check into a dedicated function
2024-12-31 13:27:38 +01:00
Jöran Karl
771b84141f
plugin: linter: Use new onBufferOptionChanged
callback
2024-12-31 13:27:38 +01:00
Jöran Karl
415ceee46b
plugin: Add new onBufferOptionChanged
callback
...
This can become handy in the moment a plugin needs to react on e.g. changed
file type.
2024-12-31 13:27:35 +01:00
med-ab
56c1f75bad
Add .cjs (common javascript) to javascript syntax definition ( #3539 )
2024-11-20 14:51:51 +01:00
Owen McGrath
c8eeb788cb
Update java.yaml ( #3526 )
2024-10-31 23:01:56 +01:00
Nimish Jha
b2dbcb3eab
implement nano-like page up/page down functionality
2024-10-29 10:22:35 +11:00
Nimish Jha
b3227d6049
add actions: CursorToViewTop, CursorToViewCenter, CursorToViewBottom ( #3506 )
2024-10-23 07:25:33 +02:00
Dmytro Maluka
f293f983bd
Merge pull request #3503 from dmaluka/spawcursorup-logical-lines
...
Revert `SpawnMultiCursor{Up,Down}` honoring softwrap + overhaul `LastVisualX` usage
2024-10-20 21:26:59 +02:00
Jöran Karl
07f8cfbef1
Merge pull request #3502 from JoeKar/feature/help-split
...
action/command: Allow `-vsplit` & `-hsplit` as optional argument for `help`
Additionally the help, vsplit and hsplit command can now open multiple files like the tab command.
2024-10-20 20:17:53 +02:00
Jöran Karl
47b84f75e1
config/settings: Add option helpsplit
for permanent help
split type
...
For downward compatibility the default split type for the `help` command
is set to be `hsplit`.
2024-10-20 14:26:42 +02:00
Jöran Karl
ff4c5c83f2
runtime/help: Align tab
's documentation to vsplit
2024-10-20 14:26:42 +02:00
Jöran Karl
acabf2b492
action/command: Align vsplit
& hsplit
to tab
's multiopen handling
2024-10-20 14:26:40 +02:00
Dmytro Maluka
1023c8d1be
Document a few more undocumented colorscheme groups
2024-10-19 01:48:27 +02:00
Jöran Karl
2c62d4b70c
action/command: Allow multiple help
pages to be opened
2024-10-15 23:35:05 +02:00
Jöran Karl
26f0806915
action/command: Add optional flag -hsplit
& -vsplit
to help
2024-10-15 23:35:03 +02:00
Dmytro Maluka
6214abba9a
Overhaul LastVisualX and GetVisualX() usage
...
Restore the original meaning of LastVisualX before commit 6d13710d93
("Implement moving cursor up/down within a wrapped line"): last visual x
location of the cursor in a logical line in the buffer, not in a visual
line on the screen (in other words, taking tabs and wide characters into
account, but not taking softwrap into account). And add a separate
LastWrappedVisualX field, similar to LastVisualX but taking softwrap
into account as well.
This allows tracking last x position at the same time for both cases
when we care about softwrap and when we don't care about it. This can be
useful, for example, for implementing cursor up/down movement actions
that always move by logical lines, not by visual lines, even if softwrap
is enabled (in addition to our default CursorUp and CursorDown actions
that move by visual lines).
Also this fixes a minor bug: in InsertTab(), when `tabstospaces` is
enabled and we insert a tab, the amount of inserted spaces depends on
the visual line wrapping (i.e. on the window width), which is probably
not a good idea.
2024-10-14 01:41:35 +02:00
Dmytro Maluka
85afb6eb87
Use StoreVisualX() all over the code
...
Since we already have the StoreVisualX() helper, use it all over the
place instead of setting LastVisualX directly.
This will allow us to add more logic to StoreVisualX() add let this
extra logic apply everywhere automatically.
2024-10-13 17:46:34 +02:00
theredcmdcraft
ac73f18191
Create nftables.yaml ( #3325 )
...
Created nftables syntax highlighting
2024-10-06 13:04:32 +02:00