Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    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
    That's not a correct behavior because C and C++ use "//" for inline comments
    The bug is likely not only C/C++ specific though
    iirc I've experienced the same bug with html and javascript
    Zachary Yedidia
    @zyedidia
    Thanks, yes it looks like the comment plugin doesn't update its filetype when a file is saved with a new name
    1 reply
    Zachary Yedidia
    @zyedidia
    I have pushed a commit that fixes this problem.
    lrapava
    @lrapava:matrix.org
    [m]
    And here's the last issue I've encountered so far.. I was playing around with reactjs and it seems like javascript syntax highlighting is broken
    You've made transition from GUI text editors to a terminal text editor so easy!
    Zachary Yedidia
    @zyedidia
    I'm glad! The javascript syntax highlighting is fairly primitive and doesn't have support for embedded html like that. It might be worth opening an issue to see if other people have solutions for this.
    lrapava
    @lrapava:matrix.org
    [m]
    The code runs without any issues. It's not pure javascript, it's javascript+reactjs. The html-like code you are seeing is JSX and it works perfectly fine with react