4 ms·
Does `micro` have an “insert file at current cursor position” now? It didn't when I last tried out the editor, and that was a showstopper for me.
by kseistrup 5y ago
Does `micro` have an “insert file at current cursor position” now? It didn't when I last tried out the editor, and that was a showstopper for me.
- revscat 5y agoWhy don’t you write a script that does that?
- kseistrup 5y agoPerhaps I don't have the skills for doing that? I gave micro a try because I thought it looks like a nice and somewhat intuitive text editor, but I regularly need the “insert file” function.
- 95014_refugee 5y agoShell out, ‘pbcopy < file’, paste, done.
- mixmastamyk 5y agoCan probably be run with Ctrl+E, aka Cmd, in micro.
- stevekemp 5y agoJust looking at the documentation nothing jumps out, but reading the plugin reference it seems like it would be an easy thing to add. You have access to read a file, you can get the current buffer, so inserting the text must be almost trivial. It seems like an odd showstoppper to have, but if you're tempted to switch writing the plugin might help you get a feel for how good the editor is in other ways.