Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    cyaneko
    @cyaneko:matrix.org
    [m]
    speaking of, any ideas why alt+shift+up/down might not work as intended on my machine? (xfce DE, xfce terminal emulator)
    like my terminal just outright ignores the shortcut
    cyaneko
    @cyaneko:matrix.org
    [m]
    alternatively... windows key mapping to a shortcut on linux?
    cyaneko
    @cyaneko:matrix.org
    [m]
    nevermind figured it out... should check /etc/X11 from time to time
    Drugoy
    @Drugoy
    @serge-v thanks a lot! It helped!
    pxlwrshp
    @pxlwrshp
    Loving micro so far. But I can't get the word wrap to work. soft wrap and word wrap are both activated, and in the settings.json file, but words still wrap in the middle. Tried everything I could think of, and I'm stumped. Running the application in Konsole on Debian, if that matters. Any help is appreciated!
    tim hatch
    @timhatch
    The options page on github suggests that the diffgutter is "live". I see only changes from when the file was first opened and the diff plugin contains only an onBufferOpen() function, so is the following description incorrect (or am I missing something obvious): "If you are in a Git directory, the diff gutter will show changes with respect to the most recent Git commit rather than the diff since opening the file"
    Lautaro Salvatore Gopen
    @LautaroSalvatore
    Hi im using micro for a few weeks now,i want to contribute some time to the project, im thinking of adding some testing, im only see a few test in tooling
    mindranger
    @mindranger:matrix.org
    [m]
    how do we preserve micro sessions?
    1 reply
    id like to have the same files open when i reopen micro
    have u been able to achieve that?
    ryleu
    @ryleu:matrix.org
    [m]

    hello!
    i'm trying to make some syntax highlighting for writing Ti-BASIC programs from micro, but i can't seem to get it working. yes, i know, you can't stop me.

    here's the error i'm getting:

    Error parsing syntax file tibasic: interface conversion: interface {} is nil, not []interface {}
    
    Press enter to continue
    and my code:
    filetype: tibasic
    
    detect:
        filename: "\\.tibasic$"
    
    rules:
          # Flow control keywords
        - statement: "\\b(If|Then|Else|For|While|Repeat|End|Pause|Menu|DelVar|GraphStyle|Input|Prompt|Disp|DispGraph|DispTable|Output|getKey|ClrHome|ClrTable|GetCalc|Get|Send|Str\\d|Pic\\d|Li[A-Z\\d]+|Goto|Lbl|OpenLib|ExecLib)\\b"
        - special: "\\b(Stop|Return)\\b"
    
          # math keywords
        - identifier.macro: "\\b(sin|cos|tan|asin|acos|atan|sqrt|rt\\-?[0-9]+|pi|i|e|ln|log|>Frac|>Dec|fMin|fMax|nDeriv|fnInt|summation|log[0-9]+|solve|abs|round|iPart|fPart|int|min|max|lcm|gcd|remainder|>n/d<>Un/d|>F<>D|conj|real|imag|angle|>Rect|>Polar|rand|nPr|nCr|randInt|randNorm|randBin|randIntNoRep|invNorm|invT|(normal|t|x2|F|binom|poisson|geomet)(p|c)df|Shade(Norm|_t|x2|F)|SortA|SortD|dim|Fill|seq|cumSum|dList|Select|augment|List>matr|Matr>list|mean|median|sum|prod|stdDev|variance|°|'|r|>DMS|R>Pr|R>Pth|P>Rx|P>Ry|det|T|dim|identity|randM|ref|rref|rowSwap|\\*?row\\+?)\\b"
        - type: "\\b(Str\\d|Pic\\d|Li[A-Z\\d]+|\\[[A-Z]\\]|th|[A-Z]+)\\b"
    
          # Operator Color
        - symbol: "[:,+*|=!%]|<|>|/|-|&"
    
          # Parenthetical Color
        - symbol.brackets: "[(){}\\[\\]]"
    
        - constant.string:
            start: "\""
            end: "\""
    
        - constant.string:
            start: "\""
            end: "$"
    
        - comment:
            start: ";"
            end: "$"
            rules:
                - todo: "(TODO|XXX|FIXME):?"
    any thoughts as to what might be going on?
    ryleu
    @ryleu:matrix.org
    [m]
    i think i'm going to go through line by line and see what the issue is
    it could just be bad regex
    is there a tool to test it?
    the once linked in the syntax highlighting readme doesn't seem to exist
    ryleu
    @ryleu:matrix.org
    [m]
    it is this section
    figured it out
    it needed a rules section
    Ghost
    @ghost~5fb8109cd73408ce4ff490bf
    I am trying to get completion for Go to work in micro. Are there any guides on achieving this? I noticed there was at some point a PR but was closed and I don't think it is of interes right now
    lmservas
    @lmservas
    Hey all I didn't see an option to search this chat so I apologize if this has been addressed before... I am attempting to set the filemanager plugin option "filemanager-openonstart": true option in settings.json but for some reason the tree just does not open when I open Micro. Anyone know what I'm doing wrong??
    lmservas
    @lmservas
    ^Disregard. I found the error. In the README.md for the filemanager plugin all of the options are presented in the format of: 'filemanager-option' but settings.json recognizes and so it should read in the README file 'filemanager.option'
    sebkolind
    @sebkolind:matrix.org
    [m]
    lmservas (lmservas) It would be nice if you contributed to the readme then, so that it won't happen to others. Good catch :)
    mindranger
    @mindranger:matrix.org
    [m]
    any way to preserve open tabs in micro?
    lmservas
    @lmservas
    @sebkolind:matrix.org I had to learn how to do this as I am still learning and will submit this edit and another similar case I found with another plugin. Thanks for the suggestion!
    lmservas
    @lmservas
    @sebkolind:matrix.org Would you happen to know if I need to submit a "pull request" if after submitting the change it says "able to merge - these brances can be automatically merged"?
    sebkolind
    @sebkolind:matrix.org
    [m]
    lmservas (lmservas)You have to submit a PR from your fork, which a maintainer on the project needs to accept.
    hmmboi
    @hmmboi:matrix.org
    [m]
    hi guys I'm testing micro for my micro needs, I need a) to set indent with spaces for tabs and b) can I build my scripts directly from mirco?
    hmmboi
    @hmmboi:matrix.org
    [m]
    solved b) with init.lua
    Zane Dufour
    @zdog234

    Hi, I'm just a random person.

    I was thinking about submitting a reportbug feature request asking debian to include micro by default (largely because it's a much more accessible editor than vim or even nano for people who are new to linux, so it'd be cool if, 5 years from now, new tutorials start using sudo micro <some config file> instead of sudo vi), but I realized it might make sense to ask here first if that's something that makes sense, and if the micro maintainers are even open to it

    2 replies
    Zachary Yedidia
    @zyedidia
    That sounds cool! I am not sure whether the Debian maintainers are willing but you can ask if you want. I don’t think there is much to do about this on the micro side (micro is already in apt, although the version they package is continually out of date)
    Emil Karlson
    @jkarlson:kapsi.fi
    [m]
    in debian date, you mean
    Kyle Warren
    @kylepwarren
    Is there a way to rearrange splits, or convert splits to tabs / vice versa? The file-manager plugin is always opening new files in another vertical split, which is only manageable so long (about 2 files).
    leonardo_albertovich
    @leonardo_albertovich:matrix.org
    [m]
    Hi, where would it be appropriate to ask about a feature I couldn't find in the documentation? The question (in case this is the right place) is : If I have my editor screen split, let's say in 4 parts, can I temporarily maximize one of those panes the same way it can be done in tmux?
    Bob Collins
    @BobCollins42

    I'm new to micro and looking to contribute.

    While reviewing the documentation on GitHub and micro-editor.github.io, I felt like I might be able to create a user manual to help adoption for users new to micro.

    Questions:
    1) Is there interest in this?
    2) Are there any other documentation projects in existence? If so, would you send me a link?

    not-AMM
    @not-AMM
    does anybody know if I can set encoding to UTF-8 with BOM?
    cyaneko
    @cyaneko:matrix.org
    [m]
    is the fmt plugin even functional/updated? i get errors trying to use it
    mindranger
    @mindranger:matrix.org
    [m]
    what's the js syntax highlighter being used?
    where do you think i should file a bug report for more robust regexp support?
    not-AMM
    @not-AMM
    I think the best place for feature requests and issues/bugs is the GitHub repo
    subham2024
    @subham2024
    how to disable syntax highlighting in micro?
    1 reply
    lrapava
    @lrapava:matrix.org
    [m]

    Hello, I was curious whether or not it is possible to make micro insert user-defined templates when you are trying to open a non-existent file.
    i.e. if example.sh doesn't exist, is it possible to make micro automatically add

    #!/bin/bash

    to the first line instead of opening an empty document?
    or, in the case of example.cpp

    #include <iostream>
    
    int main() {
        return 0;
    }
    relejek
    @relejek:matrix.org
    [m]
    hey all.
    need help: when i want write something in between a sentence the editor writes over the existing text instead of moving them backward to make room for new text
    1 reply
    lrapava
    @lrapava:matrix.org
    [m]
    Just hit it again to return to the normal mode
    relejek
    @relejek:matrix.org
    [m]
    lrapava: alright thanks it worked. i totally forgot that it also a thing on keyboard. and it not a [micro] thing but it works in all editors.
    arisolt
    @arisolt
    on mac, iTerm2 the keybinding for selecting by word alt+shift+arrow just inserts [1;10D] in the editor. I've already selected xterm Defaults in preferences
    can someone help me troubleshoot this please?