ranger file manager: change default behaviour to opening a file with less
The ranger file manager is really great to navigate fast and look at files.
The default action (enter or right) for a file is open, so text files will be opened with a text editor.
I understand that i can probably change the EDITOR variable for ranger to less, but then how would i edit files when i want?
About this post
- Posted
- Archived
- Score
- 6 · 100% up
- Kind
- Text
- ID
- 2cpu96
2 comments
You can remap the keys. See:
For a starting point, take a look at:
Alternatively, review ranger's file opener:
You sir are nicer than I, I was tempted to ask RTFM? I mean if he's into ranger file manager he MUST be familiar with man pages. Right? Right?