Micro: Enhancement: support Nano syntax for open at line

Created on 12 Oct 2017  路  5Comments  路  Source: zyedidia/micro

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!

Most helpful comment

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.

All 5 comments

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

bitcoinmeetups picture bitcoinmeetups  路  3Comments

johnmbaughman picture johnmbaughman  路  3Comments

handicraftsman picture handicraftsman  路  4Comments

DoTheEvo picture DoTheEvo  路  3Comments

xintrea picture xintrea  路  3Comments