Nano (as well as vi and macs), supports opening a file at a line or column:
nano +15 my_file will open my_file at line 15
nano +15:4 my_file will open my_file at line 15 and column 4
It would be nice if micro supports this as well!
run micro -h
Yes, while -startpos LINE,COL is a thing, it's not compatible with the other editors, which makes setting micro as my EDITOR undesirable since whenever $EDITOR +100 filename is called, micro will open an empty file +100 first, which I need to close before actually reaching the desired file.
This will not be supported. Instead either use -startpos or filename:line:col.
@zyedidia I'd love to know the reasoning, because this is a reason why I don't set micro as my EDITOR, which I'd love to do.
You know, since I'm going to the trouble of supporting the file:line:col convention I might as well do this one too. This is now supported.
Most helpful comment
You know, since I'm going to the trouble of supporting the
file:line:colconvention I might as well do this one too. This is now supported.