Giter Site home page Giter Site logo

Comments (7)

glupi-borna avatar glupi-borna commented on June 29, 2024 1
  • 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.

from micro.

Gavin-Holt avatar Gavin-Holt commented on June 29, 2024 1

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

from micro.

Andriamanitra avatar Andriamanitra commented on June 29, 2024

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.

from micro.

mdziczkowski avatar mdziczkowski commented on June 29, 2024

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

from micro.

Andriamanitra avatar Andriamanitra commented on June 29, 2024

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.

from micro.

mdziczkowski avatar mdziczkowski commented on June 29, 2024

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.

seem like this was missing in the help and documentation 🤔

from micro.

Gavin-Holt avatar Gavin-Holt commented on June 29, 2024

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 #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

from micro.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.