walles / moar

Moar is a pager. It's designed to just do the right thing without any configuration.
Other
585 stars 17 forks source link

Last opened position #203

Open ZaxonXP opened 3 months ago

ZaxonXP commented 3 months ago

It would be nice feature to have last opened position for the file (when specified by a command line parameter).

walles commented 3 months ago

Can you give an example of what you'd want the command line to look like?

ZaxonXP commented 3 months ago

Something like:

-keep <pos_file>
          Keep the last possition of the opened file

or

-remember <pos_file>
          Remember last position of the opened file

With these two alternatives pos_file is the path to the file in which the info about opened file and line number would be stored. That would only work if the input is a file and not stdin or pipe used.