4 ms·
The issue of micro for me was the formatted paste. When I paste a piece of code, micro tries to indent it line by line. Yet, it does not have the whole picture.
by feldrim 3y ago
The issue of micro for me was the formatted paste. When I paste a piece of code, micro tries to indent it line by line. Yet, it does not have the whole picture. So it indents the pasted text gradually to infinity. And line by line inferring the format slows the process down to zero. You paste and go grab a coffee instead of watching a Matrix-like paste scene.
I hope they solved it but I left at that point. If it is solved, I can give it a try again.
- Yasuraka 3y agoYou could disable it (Ctrl+E, 'set autoindent off') https://github.com/zyedidia/micro/blob/master/runtime/help/options.md#settingsjson-file https://github.com/zyedidia/micro/blob/master/runtime/help/o... But even when enabled (like I have) it should indently correctly when pasting entire blocks. If you'd like to share your setup/env/config I'd take a look at working out a patch
- feldrim 3y agoIt's been a while, I will try and create an issue. Bir I was using the default setup IIRC.
- Yasuraka 3y agoIt is enabled by default so that wouldn't be unlikely, but I was thinking more of the circumstances such as SSH tunnels, xclip or wl-clipboard and similar (or perhaps the most important one, version of micro itself)
- feldrim 3y agoI only used it locally, so there wasn't any other application in between. I used it on Windows but I don't have the version -though I always keep it up to date, so latest or minus one- or configuration now, yet I'll update you with details when I get back from vacation. Thanks!
- mminer237 3y agoI've had that happen once when I was using it on Windows with Wezterm. It depends on how you paste. I'm not 100% clear how it works, but I believe micro reimplements pasting directly with xclip (idk what it does on Windows) so if you paste with Ctrl+V, it just instantly inserts what's on the clipboard as a block and copies the source indentation. If you do Ctrl+Shift+V, sometimes it essentially just gets the clipboard piped from the terminal each character one at a time, not knowing what comes next, so then it indents extra when it sees the return character and then it naïvely gets a couple tabs added on top.