ox icon indicating copy to clipboard operation
ox copied to clipboard

Read-only mode (viewer mode) when called as "rox" or with -r

Open vlisivka opened this issue 5 years ago • 3 comments

Is your feature request related to a problem? Please describe. It's better to use the same editor both as editor and as viewer or pager (e.g. as replacement for less). To use ox as viewer, readonly mode must be supported.

Describe the solution you'd like When ox is invoked as "rox", it should read content of file from stdin or from file, if specified, and display it in readonly mode.

Describe alternatives you've considered Currently, less or vim are used as pager.

vlisivka avatar Nov 03 '20 12:11 vlisivka

This is an interesting idea, I do want to add a read only mode for files that aren't able to be written to due to permissions or other factors and will consider adding a way to use this from the command line interface. :)

curlpipe avatar Nov 03 '20 17:11 curlpipe

Note: that should be an option like '-r' and user can alias it as "rox" because rox is already to launch file manager ROX-Filer.

zen2 avatar Nov 05 '20 11:11 zen2

I've added a read only mode that will open a text file and not allow any edits in 0.2.7 but I will further this feature to allow input from the stdin in later versions, probably the next one.

curlpipe avatar Nov 22 '20 18:11 curlpipe