Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Mario Rocha
    @mariorocha2308
    Hi , friends .. I´ve installed micro in windows with my hyper terminal and say bash micro command not found
    _Arabica
    @PeriodGamingYT
    I have installed micro on many of my computers, works perfectly!
    Kristoffer Franzon
    @KrissLaCross
    Hey! Quick question: can I force hide the ruler from inside a plugin?
    Kristoffer Franzon
    @KrissLaCross
    Never mind! It was as easy as SetOptionNative('ruler', false)
    Kristoffer Franzon
    @KrissLaCross
    How would one run micro specific commands from inside a plugin? It seems like ExecCommand/RunCommand/RunBackgroundShell only run native shell commands. In my case I would like to run micro commands like "open 'file'" or "cd 'path'"
    ice-be
    @ice-be
    is micro has an internal terminal
    1 reply
    Zachary Yedidia
    @zyedidia
    I think buffer panes have a method HandleCommand which will execute the given command.
    Kristoffer Franzon
    @KrissLaCross

    I think buffer panes have a method HandleCommand which will execute the given command.

    Oh awesome! I went digging around in the github but didn't find anything that seemed relevant, turns out I must be blind. I'll give 'HandleCommand' a shot later. Thank you!

    Mikko
    @Andriamanitra
    is it possible to customize the bindings help text (that pops up by pressing Alt-g by default)? i have customized some bindings so it's slightly inaccurate and i would also like to add some stuff that i tend to forget all the time
    Mikko
    @Andriamanitra
    well this is the dirtiest hack i've done in a while but it works (as long as the replacement is the same length as the old one) so :laughing: perl -pi -e 's/\\, \\^A Select All\\, \\^D Duplicate Line\\, \\^T New Tab/, ^D Find Next, ^T New Tab, Alt-,\/. Switch Tab/' /usr/bin/micro
    Derek
    @derekthomas
    textfilter doesn't seem to work with interactive shell commands. It either hangs at the command prompt or messes up my terminal. And I've tried a few terminal programs and platforms.
    ...Is that to be expected and/or is there a workaround?
    pyfisch
    @pyfisch:matrix.org
    [m]
    Hi, is there a simple way to test the filetype detection in isolation?
    I'm trying to fix zyedidia/micro#2163
    Pito Salas
    @pitosalas
    Quick q: i did something so now micro doesn't realize that I used my mouse to select... something about mouse tracking but I can't remember or figure out how to get it back :(
    Zachary Yedidia
    @zyedidia
    Did you turn the mouse option off? You can turn it back on with set mouse on
    kevincotter
    @kevincotter

    I did a bit of a Powerline mod, if anyone is interested.

    My Golang skills are non-existent, tho, so keep that in mind. =D

    Micro Powerline

    SwitchAxe
    @SwitchAxe
    hello. Are there any updates on zyedidia/micro#2059 ?
    as of now micro just shows "lisp" (whatever that means?) as the filetype and no highlighting is shown at all, except for the 4 mathematical operators (and even then, its glitched: the left parenthesis gets highlighted too and it shouldn't). are there any plans to implement a proper Scheme syntax highlighting in the near future?
    SwitchAxe
    @SwitchAxe
    ok there appears to also be string highlighting and also literals (things starting with ') but that's it
    Andy
    @drewauff
    ctrl-v to paste is not working in latest version..however cutting a line (ctrl-k) then undoing that cut, make its work again, this is a bug, it is repeatable. note: iTerm2 ( latest beta on MacOS Catalina)
    SwitchAxe
    @SwitchAxe
    @drewauff you should open an issue
    mindranger
    @mindranger:matrix.org
    [m]
    hi, how do i open files without writing the full filename?
    wildcards dont seem 2 work, and tab only prints suggestions
    mindranger
    @mindranger:matrix.org
    [m]
    also, is there a way to bind mous scrolling to filemanager plugin's move down/up? its a bit irksome to arrow-press across a big folder
    kevincotter
    @kevincotter
    @mindranger:matrix.org There's an fzf plugin for that.
    Andy
    @drewauff
    @SwitchAxe Done!
    smowtenshi
    @smowtenshi:matrix.org
    [m]
    I have a problem with matching file named "smow's profile.txt" to ft:shell :/
    Ghost
    @ghost~611c31d06da0373984835e8b
    Hey, anyone have a linter for Rust language or other plugin?
    Zachary Yedidia
    @zyedidia
    I just added a default linter for Rust which uses cargo clippy. To get it, you can download and build from source, wait for the nightly tomorrow, or manually add linter.makeLinter("clippy", "rust", "cargo", {"clippy", "--message-format", "short"}, "%f:%l:%c: %m") to your init.lua.
    Ghost
    @ghost~611c31d06da0373984835e8b
    thanks!
    SwitchAxe
    @SwitchAxe

    hello. Are there any updates on zyedidia/micro#2059 ?

    so?

    lrapava
    @lrapava:matrix.org
    [m]
    Hello, I enjoy using the Micro text editor, but, unfortunately, I know neither Go or Lua. Is this the right place to request features/report bugs?
    lrapava
    @lrapava:matrix.org
    [m]
    I've switched from sudo to doas (and, since I didn't need sudo anymore, uninstalled sudo). Unfortunately, If I forget to write "doas" before "micro /path/to/read-only/file/" if I try to save changes micro doesn't recognize that sudo isn't installed and can't save the changes. For those who don't know, doas is like sudo but without a bunch of features most desktop users don't use anyways. It's a BSD thing but is also ported to Linux. The reason why [most] people switch to doas is that it's source-code is smaller and less code -> probably less bugs -> smaller attack surface, so having both sudo and doas is pointless (since it would only increase attack surface).
    Zachary Yedidia
    @zyedidia
    You can use the sucmd option to configure micro to use doas instead of sudo for saving
    lrapava
    @lrapava:matrix.org
    [m]
    Thanks for your response. Unfortunately "micro -sucmd doas" doesn't work.. Am I doing something wrong?
    lrapava
    @lrapava:matrix.org
    [m]
    To be more specific, "micro -sucmd doas /path/to/read-only/file" does work, but it still tries to run sodo when I don't write "-sucmd doas"
    Is there a more.. permanent solution?
    Zachary Yedidia
    @zyedidia
    If you run > set sucmd doas from inside micro the option should be permanently set to use doas.
    lrapava
    @lrapava:matrix.org
    [m]
    Thanks, that worked! Unfortunately it still writes sudo instead of doas in the editor, but it's not a major issue
    It does run doas though after hitting the y key
    Zachary Yedidia
    @zyedidia
    Ah I see, thanks for the info, I'll push a commit that fixes the message
    lrapava
    @lrapava:matrix.org
    [m]
    There's also another bug I've experienced
    Ctrl+/ comments the line cursor is on
    if you just run micro and try to use ctrl+/ it adds "#" to the beginning of the line the cursor is on
    and it keeps doing that even if you save the file as, let's say, a C++ file (.cpp)
    instead of adding "//" in front of the line
    lrapava
    @lrapava:matrix.org
    [m]
    The key binding works properly if you run "micro /path/to/file" or "open /path/to/file" (in micro)
    lrapava
    @lrapava:matrix.org
    [m]
    This video probably demonstrates the bug better