micro -encoding utf-16BE file.txtthen the file will be opened with the utf-16BE encoding. To reset your encoding option to default globally (default is utf-8) just run
> reset encoding, or
> set encoding utf-8.
search.gofile in the internal buffer package which handles this. For efficiency micro performs the search match on each line separately instead of converting the buffer to a contiguous array of bytes before performing the search over everything (the buffer is stored as a line array internally). This explains why
\ndoesn't match at the moment. I think there are two methods to fix this: one is to check if the search pattern contains a newline and if so do the slow method of converting the buffer to a byte array and search on that. The other (and probably better) method is to implement an
io.Readerinterface for the line array structure and use the regexp search functions for matching on an
io.Readerthat are provided by the Go stdlib. Feel free to look into it, but I will probably try to fix it at some point if you don't get to it.
--previewoption for example
fzf --preview=...instead of just
I tried to add some snippets of Julia to snippets plugin for example:
snippet alpha α
I have made this file and place it to
~/.config/micro/plug/snippets/snippets/julia.snippets but it seems to crush. As far as I searched other language's snippets, I can't find what's wrong. Does anyone have any idea?
terminal. You can read
> help copypastefor all the details you would ever want about how copy/paste in micro works and why it's so annoyingly complicated.