diff options
Diffstat (limited to 'examples')
-rw-r--r-- | examples/plugin_ipc.py | 3 | ||||
-rw-r--r-- | examples/rc_emacs.conf | 4 |
2 files changed, 5 insertions, 2 deletions
diff --git a/examples/plugin_ipc.py b/examples/plugin_ipc.py index c6fc60c6..0e7de3bb 100644 --- a/examples/plugin_ipc.py +++ b/examples/plugin_ipc.py @@ -30,6 +30,9 @@ def hook_init(fm): def ipc_reader(filepath): while True: + # The IPC encoding depends on the system locale so we can't + # guess here. + # pylint: disable=unspecified-encoding with open(filepath, 'r') as fifo: line = fifo.read() fm.execute_console(line.strip()) diff --git a/examples/rc_emacs.conf b/examples/rc_emacs.conf index 3b086efd..5105211a 100644 --- a/examples/rc_emacs.conf +++ b/examples/rc_emacs.conf @@ -331,8 +331,8 @@ map <C-x>g? cd /usr/share/doc/ranger # External Programs map <C-x><C-f> edit -map <C-x>du shell -p du --max-depth=1 -h --apparent-size -map <C-x>dU shell -p du --max-depth=1 -h --apparent-size | sort -rh +map <C-x>du shell -p (du --max-depth=1 --human-readable --apparent-size || du -d 1 -h) 2>/dev/null +map <C-x>dU shell -p (du --max-depth=1 --human-readable --apparent-size || du -d 1 -h) 2>/dev/null | sort -rh map <C-x>wp shell -f echo -n %d/%f | xsel -i; xsel -o | xsel -i -b map <C-x>wd shell -f echo -n %d | xsel -i; xsel -o | xsel -i -b map <C-x>wn shell -f echo -n %f | xsel -i; xsel -o | xsel -i -b |