Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Stock84-dev/ranger-most-used-sort
Ranger plugin that sorts elements by most used order
https://github.com/Stock84-dev/ranger-most-used-sort
ranger ranger-plugin
Last synced: about 2 months ago
JSON representation
Ranger plugin that sorts elements by most used order
- Host: GitHub
- URL: https://github.com/Stock84-dev/ranger-most-used-sort
- Owner: Stock84-dev
- Created: 2019-09-23T14:55:01.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-09-23T15:48:43.000Z (over 5 years ago)
- Last Synced: 2024-08-03T18:21:13.117Z (5 months ago)
- Topics: ranger, ranger-plugin
- Language: Python
- Homepage:
- Size: 2.93 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- ranger-awesome - ranger-most-used-sort
README
This is a plugin for [ranger](https://github.com/ranger/ranger) (terminal based file manager) that sorts files and directories by most used order. For each file that user opens or changes directory to, weight increases by 1.
### Instalation
Move plugin_most_used.py to ~/.config/ranger/plugins/
Replace set sort xyz by set sort most-used in ~/.config/ranger/rc.conf for ranger to use it by default. Alternatively you can tybe :set sort most-used in ranger to be valid for current session.### Commands
:most_used_reorder \# Refreshes ui for reorder to take effect.:most_used_optimize \# Removes all tracked paths that don't exist anymore to improve performance.
:most_used_track \# Starts or stops tracking depending on argument, true or false.
:most_used_save \# Saves tricked paths to file. Paths are saved as json in the same directory as this plugin.
:most_used_save_interval \# Changes save interval in seconds depending on argument.
-1 - Do not autosave.
0 - Autosave on every changed directory and executed file (default).
x > 0 Autosaves after x seconds.