3485 Commits

Author SHA1 Message Date
hemmingsv
3a7403bde4 feat(textfilter): Select output if input was from selection (#3974) nightly 2026-01-28 19:41:51 +01:00
Dmytro Maluka
dc2d70bfe1 Fix default keybindings for Ctrl-c and Ctrl-x in command mode (#3973)
Micro doesn't support chained actions for command mode keybindings yet,
it only supports them for regular buffer keybindings. Whereas Ctrl-c and
Ctrl-x are bound by default to the chained actions Copy|CopyLine and
Cut|CutLine in both buffer mode and command mode, so in command mode
Ctrl-c and Ctrl-x don't work at all (with default keybindings).

Luckily CopyLine and CutLine would not be not very useful in command
mode anyway. So fix the issue by changing the default keybindings in
command mode to the simple non-chained actions Copy and Cut.
2026-01-23 19:07:13 +01:00
Jöran Karl
3e95779cf0 templates: Fix empty titles introduced with #3971 2026-01-21 20:55:01 +01:00
Jöran Karl
28e1b020e4 Merge pull request #3971 from JoeKar/fix/repository-url
Change `zyedidia/micro` to `micro-editor/micro`
2026-01-21 20:52:05 +01:00
Jöran Karl
0a4e15b5a7 Merge pull request #3969 from JoeKar/fix/issue-template
Restore issue template functionality
2026-01-21 20:51:40 +01:00
Jöran Karl
ab8c242044 gofmt after renaming the URL 2026-01-21 20:29:57 +01:00
Jöran Karl
4ead0e453b Change zyedidia/micro to micro-editor/micro 2026-01-21 20:29:55 +01:00
Jöran Karl
20842c0d30 templates: Deny blank issues 2026-01-21 19:23:19 +01:00
Jöran Karl
5c98734f56 templates: Add feature template 2026-01-21 19:23:17 +01:00
Jöran Karl
2e278712ef templates: Convert markdown issue template into YAML form
.github/ISSUE_TEMPLATE isn't allowed as template file name any longer,
since it is used as the default search folder for issue templates.
2026-01-21 19:23:15 +01:00
Frank
d1426b6fb2 Add syntax highlighting rules for B language (#3965) 2026-01-18 10:45:45 +01:00
niten94
a544015a35 Use argument passed to OpenCmd without splitting (#3946)
"Split(args[0])" has been performed since "open" was added[1], but it
may had been left by accident. It's unlikely desired when using the
command prompt, and doesn't seem to have been added once to commands
such as "vsplit" [2] which were implemented days before.

[1]: 5825353f64
[2]: 541daf212e
2026-01-11 11:19:50 +01:00
Jöran Karl
adfc136506 command: Fix typo in documentation of HelpCmd() (#3956) 2026-01-11 11:19:09 +01:00
Jöran Karl
ee09a0354a tools/cross-compile: Drop creation of Linux 64 fully static archive (#3957)
Since https://github.com/benweissmann/getmic.ro/pull/40 was merged there is no
need to create this superfluous archive any longer.
2026-01-10 20:14:37 +01:00
Jöran Karl
9a6c827880 config: Don't hardcode the fakecursor under Windows console any longer (#3959)
* config: Don't hardcode the `fakecursor` under Windows console any longer

We just set the global default and allow the user to override it.

* help: Add a concrete note for the `fakecursor` option in the Windows Console
2026-01-10 20:13:29 +01:00
Jöran Karl
6a62575bcf metainfo: Release v2.0.15 v2.0.15 2025-12-31 12:47:43 +01:00
Neko Box Coder
467eb88df0 Adding clarification regarding multiple characters for showchars (#3945)
Adding clarification regarding multiple characters for showchars.

Closes #3938
2025-12-18 18:16:51 +01:00
Jöran Karl
d1ceacad88 Merge pull request #3910 from AndydeCleyre/bugfix/2600
Only set buffer type to stdout when no file args are passed
v2.0.15-rc1
2025-12-07 18:04:32 +01:00
Andy Kluger
331c43ebb5 Replace never-assigned var filename with literal empty strings 2025-12-03 15:10:36 -05:00
Dmytro Maluka
118f5a3e35 gofmt fix 2025-12-03 01:19:35 +01:00
Andy Kluger
70d9b64301 LoadInput: reduce variable scope (input, err)
Move input and err variable declarations to their usage point.
2025-12-02 14:59:45 -05:00
Andy Kluger
4debd29ccf Make the buffer creation when (no file args, terminal stdin) explicitly distinct
. . . but functionally equivalent.
2025-12-01 13:26:19 -05:00
Andy Kluger
c80e5cd97f Only set buffer type to stdout when no file args are passed
Fixes #2600
2025-12-01 13:15:28 -05:00
Mikko
70dfc7fcb4 fix drawing of wide characters in InfoWindow (#3919) 2025-11-27 19:45:30 +01:00
Jöran Karl
a2620d1c02 Merge pull request #3914 from matthias314/m3/fix-issue-3700
quick fix for #3700
2025-11-27 19:24:52 +01:00
matthias314
560bfcf749 ensure regexp error messages are displayed in findCallback 2025-11-25 17:19:26 -05:00
matthias314
a577fc95ff handle regexps with missing \E (quick fix for #3700) 2025-11-25 17:19:26 -05:00
Jöran Karl
bc5e59c670 Merge pull request #3618 from Neko-Box-Coder/LockConfig
Removing the ability for plugins to modify settings.json and bindings.json. Adding an option to reject plugins to bind keys.
2025-11-18 21:28:19 +01:00
Neko Box Coder
4f1d2bb543 Adding lockbindings option for disallowing lua to modify bindings at all 2025-11-18 19:12:20 +00:00
Neko Box Coder
7a250b7df4 Changing behavior for SetGlobalOption*() for lua to not write to file 2025-11-18 19:12:05 +00:00
Neko Box Coder
b39b5b5916 Changing behavior for TryBindKey() for lua to not write to bindings.json 2025-11-18 19:12:04 +00:00
Nabeel Sherazi
9183fbe640 Include --options-with-hyphens in statement regex (#3863) 2025-11-05 19:07:24 +01:00
niten94
fa68314123 Update Tcell to v2.0.13 (#3895) 2025-10-27 20:38:31 +01:00
kodesettings
ccf0a9f6d6 Added linting support for ldc2 and gdc compilers (#3892)
* Added linting support for ldc2 and gdc compilers

* Update runtime/plugins/linter/linter.lua

ldc2 arguments have been updated for linter

Co-authored-by: Mikko <Andriamanitra@users.noreply.github.com>

---------

Co-authored-by: Mikko <Andriamanitra@users.noreply.github.com>
2025-10-21 18:51:54 +02:00
Neko Box Coder
115e560ee2 Fixing regression introduced by #3310 with missing word boundary (#3891) 2025-10-19 13:13:30 +02:00
Jöran Karl
284942dffd Merge pull request #3806 from JoeKar/fix/backup-path
backup+util: Prevent too long backup file names with hashing + resolve file
2025-10-19 12:46:17 +02:00
Jöran Karl
bab39079b3 save: Remove a possible written backup in case the path has changed 2025-10-18 21:07:07 +02:00
Jöran Karl
02611f4ad2 backup: Keep path of stored & hashed backup files in a own $hash.path file
Since full escaped backup paths can become longer than the maximum filename size
and hashed filenames cannot be restored it is helpful to have a lookup file for
the user to resolve the hashed path.
2025-10-18 21:07:06 +02:00
Jöran Karl
1ce2202d9a util: Convert suffix added with AppendBackupSuffix() to simple constant 2025-10-18 21:06:47 +02:00
Jöran Karl
78d2c617ed util: Hash the path in DetermineEscapePath()
...in case the escaped path exceeds the file name length limit
2025-10-18 21:05:56 +02:00
Mikko
815ca0b6d8 fix c++ highlighting for binary literal with digit separator and suffix (#3870) 2025-10-11 21:59:02 +02:00
Jöran Karl
ec8bb7c11d Merge pull request #3866 from niten94/hide-sudo-prompt-win
- Disable sudo save prompt on Windows
- Add micro.exe to .gitignore
2025-09-21 14:33:23 +02:00
niten94
dcdddc191b Add micro.exe to .gitignore 2025-09-21 00:30:16 +08:00
niten94
85b4b2b788 Disable sudo save prompt on Windows
Display message stating that saving with sudo is unsupported on Windows,
immediately without a prompt when permission is denied.
2025-09-21 00:30:07 +08:00
Jöran Karl
ad24089e4e README: Use v2 for the Go Report Card (#3835) 2025-09-09 20:28:13 +02:00
Neko Box Coder
ed970eede3 Reordering triple quotes string to be evaluated first for groovy syntax (#3858) 2025-09-07 11:40:13 +02:00
Neko Box Coder
4d95f5f121 Adding comment for typescript (#3857) 2025-09-07 11:37:11 +02:00
Jöran Karl
45342bb0f1 Merge pull request #3760 from Neko-Box-Coder/MoreCharOptions
Adding indenttabchar, indentspacechar and spacechar options
2025-09-06 18:53:09 +02:00
Neko Box Coder
1ef6459846 Adding showchars option 2025-09-06 16:48:01 +01:00
Neko Box Coder
532c315f79 Simplifying draw to be less nested 2025-09-06 16:46:50 +01:00