Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Zachary Yedidia
    @zyedidia
    Yeah unfortunately micro doesn't have good syntax highlighting support for jsx/non-standard javascript.
    lrapava
    @lrapava:matrix.org
    [m]
    Welp, that's unfortunate. Reactjs is a pretty popular library..
    lrapava
    @lrapava:matrix.org
    [m]
    btw, where can I learn how to make syntax files?
    completely ignoring JSX code would be a good-enough solution for me
    Zachary Yedidia
    @zyedidia
    To disable syntax highlighting you can turn the syntax option off. In ~/.config/micro/settings.json you could make a local option that disables syntax highlighting for *.js files (see the section "Global and local settings" in > help options).
    To learn more about syntax files, see the second half of > help colors, and you can look at all the existing syntax files at https://github.com/zyedidia/micro/tree/master/runtime/syntax
    lrapava
    @lrapava:matrix.org
    [m]
    I've found this (temporary) solution
    I've added another multiline comment that starts with //JSX_start and ends with //JSX_end
    the text editor thinks that the JSX code is a comment
    But javascript ignores //JSX_start and //JSX_end, because it thinks it's just an inline comment
    Zachary Yedidia
    @zyedidia
    Cool! You could probably even use include to get html highlighting within those comments
    but you would have to be careful of recursive includes
    you might need a stripped down html highlighter if you want to do that
    lrapava
    @lrapava:matrix.org
    [m]
    I may try to add proper ReactJS/JSX support later...
    lrapava
    @lrapava:matrix.org
    [m]
    You can find it on the plugins page
    If I knew where the source-code for the web-page (https://micro-editor.github.io/plugins.html) is I'd remove it myself, but I have no idea where to find it
    Zachary Yedidia
    @zyedidia
    thanks i fixed it
    lrapava
    @lrapava:matrix.org
    [m]
    :point_up: Edit: 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?
    Zachary Yedidia
    @zyedidia
    you can do that here or open issues on github
    lrapava
    @lrapava:matrix.org
    [m]
    Oh, the edit got resent by a bot?
    Sorry for spamming
    Not intended
    lrapava
    @lrapava:matrix.org
    [m]
    is it possible word/character/line count to constantly appear at the bar instead of having to ctrl+e & "wc" every time I'm interested in word/character/line count?
    (this bar)
    Daniel Sieradski
    @selfagency
    Hi, how do I get my delete key to work like a delete key instead of duplicating the current line? I tried binding Delete to Delete and that didn't work. I tried binding Delete to UnbindKey and that didn't work either and gave me an error saying the action doesn't exist. Thanks!
    Zachary Yedidia
    @zyedidia
    @lrapava You could probably implement wc as a function that returns the number of words/characters/lines and then use that in your statusformat. Take a look at the wc plugin implementation if you want. As a word of caution, the statusline is updated every redraw so this probably wouldn't be especially efficient (if you are using large files).
    @selfagency By default Ctrl-d is bound to duplicate line, and the delete key is bound to the Delete action. What key are you pressing? If you run > raw and then press the key, what event does micro say it is receiving from the terminal?
    Daniel Sieradski
    @selfagency
    @zyedidia it says ctrl-d
    so the issue is in iterm?
    Daniel Sieradski
    @selfagency
    ah yes, it was a problem with iterm keymapping
    andy
    @drewauff
    Im an iTerm user here, pboard is borked (clipboard) can't paste from external sources ie. web browser, another micro instance. Seems rebooting is the only fix (temporarily).
    andy
    @drewauff
    Should have note in previous post but pasting works fine from context menu..
    SwitchAxe
    @SwitchAxe
    how do i enable ligatures in micro?
    (i'm using a font with ligatures, but they won't show up)
    lrapava
    @lrapava:matrix.org
    [m]
    Is there a way to make the functions and variables from an included file appear in auto-suggestions?
    lrapava
    @lrapava:matrix.org
    [m]
    also, I've found another bug
    lrapava
    @lrapava:matrix.org
    [m]
    lrapava
    @lrapava:matrix.org
    [m]
    also, it makes "false alarm" when I use "#pragma once" in C++
    as is demonstrated in the following screenshot:
    the error message says "#pragma once in main file", when it isn't in the main file
    compiler outputs no errors
    Pacharapol Withayasakpunt
    @patarapolw
    When I am in Xorg, how do I open Micro in new window from Terminal?
    1 reply
    adam-law
    @adam-law

    hi. I love micro. I got a problem though and I'm not sure if its my setup or a bug. When in micro, I copy a selection and it says 'Copied Selection'. But when I paste, it pastes whatever was last copied into the clipboard (i.e., as if the selection was never copied into the clipboard).

    I also can't paste the copied selection outside micro (terminal), if that helps.

    I'm using fish in byobu and I've used the workaround "export TERM=xterm-256color" to get shift text selection working.

    Thanks!

    P.S. installed micro via LinuxBrew.
    Collin Warren
    @GeigerCounter
    Hey @zyedidia , long time no see. I haven't contributed since very early on in development. I did lot of the syntax highlights and some of the colorschemes. I've been using micro the whole time and am happy to see it come to apt. Although the version in the Ubuntu repo is so old I might need to spin up a ppa. What I'm here to ask about is my previous work. I've noticed a lot of syntax highlights are too simple - probably cos I converted them from nano highlights for the most part - and that a lot of colorschemes ( especially my cmc-16 which is still bundled with micro ) are out of date and haven't been kept up with some new UI elements and aren't aware of terminal features that I wasn't aware of at the time. ( Such as transparent background support and default text color support. ) I had also always intended to go back and make 256 color variants and now would also like to do truecolor if that's possible. I noticed that a lot of colorschemes were separated out into plugin packages, is that the preferred way of submitting colorschemes now?
    Karl Gustav
    @karl-gustav
    Is micro slow to start for any of you guys on the 2.0.10 (b9763856) version? In the debug log it only says started, and then that it can't find the system clipboard 20 seconds later...