Open mdziczkowski opened 1 week ago
- Line operations features (among others: text sort, highlighted text selection, etc.)
I feel like the plugin API covers this pretty well - if you think there's some very generally useful feature (so, not specific to some programming language/filetype) that micro does not implement right now, it would be good to point out what specifically that is. Text sorting can trivially be implenented via a plugin, and I'm not really sure what you mean by "highlighted text selection".
Likewise, if there's something missing in the plugin API that makes a certain class of plugin impossible to implement, it would be better to point it out specifically.
- add a example setting file containing all configurable options and their values
All configurable options are documented in micro's help files. An example settings file might be an alright addition, but it is likely to become just another piece of documentation that tends to go out of date as micro is developed. There are not a lot of maintainers right now and we should be careful not to overburden them with more docs than is necessary.
- include all existing plugin channels and repos (most of them isn't documented)
As far as I am aware, the official micro plugin channel is the only "blessed" plugin channel. Since plugins are a really easy attack surface for people who want to compromise your PC (just look at what's been going on with VSCode lately), it is probably better if micro does not officially recommend alternative (possibly unchecked) plugin channels.
I hope all this does not sound too negative, I am just trying to explain why things are the way they are right now.
The good news is that @dmaluka, @JoeKar and a handful of other people have been doing amazing work, and micro is improving rapidly these days. Hopefully this will bring more interest to the project, and then maybe we could someday have a much more active plugin channel, with more "blessed" plugins.
For text sorting specifically you can use the textfilter
command to sort lines with external command such as the POSIX sort implemented by coreutils (eg. textfilter sort -nr
to sort numerically in reverse order). Implementing sorting in the text editor itself is IMO a bad idea because the problem is already neatly solved by an external tool that is also immensely useful outside the context of a text editor. Achieving feature parity with POSIX sort
would take quite a lot of code and work.
Hi,
Extending Micro to do the things you want - is part of the fun 😊.
I have gradually added functionality, using Lua and some windows tools, with lots of help from the community. The resulting Lua functions can be assigned to keys of your choice. Full description here.
You may be specifically interested in; saving textfilter commands for re-use and enhanced text selection.
Kind Regards Gavin Holt PS Please close issues when you are finished
The case is that not every one knows Lua, and missing mentioned as base (build-in, instead of plugins) makes the work more difficult.
For example, assume working on Linux server without any graphical interface and need to edit a extensive configuration files.
Missing of mentioned and "find and replace" makes such work more difficult
Missing of mentioned and "find and replace" makes such work more difficult
Micro has replace
/replaceall
commands and a Find action. If you want to replace matches one by one interactively you can use the FindNext
action (which you could also combine with the Paste
action under a single keybinding to do the replacement). What are the exact workflow(s) you are missing? Without a detailed description of what you want this issue is not actionable.
Missing of mentioned and "find and replace" makes such work more difficult
Micro has
replace
/replaceall
commands and a Find action. If you want to replace matches one by one interactively you can use theFindNext
action (which you could also combine with thePaste
action under a single keybinding to do the replacement). What are the exact workflow(s) you are missing? Without a detailed description of what you want this issue is not actionable.
seem like this was missing in the help and documentation 🤔
Hi,
Micro has help files built in to the executable. Activate the command line and use the help
command, with TAB
to display a list of help files. If you add a help
folder to your config-dir
, then any help additional files you place there will appear in the TAB
list (e.g. fzf readme.md).
If you prefer, these help files are in the /runtime/help
folder of this repository. Help for replace
is in the Commands.md file and is a bit superficial, see https://github.com/zyedidia/micro/issues/3279 for my attempt to expand on the documentation.
The FindNext
action is presented in both defaultkeys.md and keybindings.md.
I must admit I often use another editor (or sed.exe) to do lots of replacements.
Kind Regards Gavin Holt
Feature request description
I would like to proposese adding into micro editor's package and editor following:
Line operations features (among others: text sort, highlighted text selection, etc.)
add a example setting file containing all configurable options and their values
include all existing plugin channels and repos (most of them isn't documented)
Above are just few ones with would mostly improve the quality of work in the editor and make it even better 🙂