summary refs log tree commit diff stats
path: root/examples/plugin_pmount.py
Commit message (Collapse)AuthorAgeFilesLines
* import order and break long linesNathaniel2018-07-071-8/+12
|
* Indentation and whitespace cleanupNathaniel2018-07-071-12/+8
|
* Update plugin_pmount.pyNathaniel2018-07-071-20/+47
| | | | | | | | Currently the pmount plugin uses static device letters and partition numbers. this change uses present devices and partitions. - Changes the binds to remove the need for uppercase device letters, if a device has no partitions <alt><m or M><device letter> mounts/unmounts the device. - With only one partition the same binds will handle it instead of the whole device. - With greater than one partitions, map <alt><m or M><device letter><partition number> for each. This is still not fully functional, devices not present when ranger is started *(usb drives)* won't have a map created unless ranger is restarted :| ... Is there a simple way to have ranger 'reload' this plugin, or use a different hook, etc.?
* linting: pylint: Enable `broad-except`, Improve loggingnfnty2017-01-211-16/+13
| | | | | | | Handle exceptions explicitly to prevent unexpected errors from causing problems. Improve exception and notification logging.
* Python 3 division: Import `division` from `__future__`nfnty2017-01-211-1/+1
|
* linting: Python 2 compat: Import from `__future__`nfnty2017-01-171-0/+2
|
* linting: pylint and flake8nfnty2017-01-171-3/+8
|
* linting: autopep8nfnty2017-01-171-4/+10
|
* Add two blank lines where is expectedstepshal2016-06-161-0/+2
|
* Add plugin_pmount.pyWojciech Siewierski2015-10-091-0/+30
Implemented as a Python plugin instead of a bunch of rc.conf lines to allow easy nested looping.