Skip to content

Stock84-dev/ranger-most-used-sort

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

This is a plugin for 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.

About

Ranger plugin that sorts elements by most used order

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages