aboutsummaryrefslogtreecommitdiff
path: root/.config/ranger
diff options
context:
space:
mode:
authortdro <tdro@users.noreply.github.com>2020-08-14 23:47:06 -0400
committertdro <tdro@users.noreply.github.com>2020-08-14 23:47:06 -0400
commite310a319242d19a88744e727a8db0840cdf73cea (patch)
tree449e73d6e4bdf89add84cf1329c42a8af54a799a /.config/ranger
parenta1174a335a0b54c18bb04a4f4a777d1ea0a21e19 (diff)
downloaddotfiles-e310a319242d19a88744e727a8db0840cdf73cea.tar.gz
dotfiles-e310a319242d19a88744e727a8db0840cdf73cea.tar.bz2
dotfiles-e310a319242d19a88744e727a8db0840cdf73cea.zip
.config/ranger: Fix fzf
Diffstat (limited to '.config/ranger')
-rw-r--r--.config/ranger/commands.py20
-rw-r--r--.config/ranger/rc.conf4
2 files changed, 12 insertions, 12 deletions
diff --git a/.config/ranger/commands.py b/.config/ranger/commands.py
index 93e8ec8..8bfcd5c 100644
--- a/.config/ranger/commands.py
+++ b/.config/ranger/commands.py
@@ -1,26 +1,26 @@
from ranger.api.commands import Command
-class fzm_select(Command):
+class fzf_dir_select(Command):
"""
- :fzm_select
+ :fzf_dir_select
See: https://github.com/urbainvaes/fzf-marks
"""
def execute(self):
import subprocess
import os.path
- fzm = self.fm.execute_command(
- "source $HOME/.config/fzf-marks/fzf-marks.plugin.bash && fzm",
+ dir = self.fm.execute_command(
+ "source $HOME/.config/fzf-marks/fzf-marks.plugin.bash && fzf-dir",
universal_newlines=True,
stdout=subprocess.PIPE)
- stdout, stderr = fzm.communicate()
- if fzm.returncode == 0:
- fzm_folder = os.path.abspath(stdout.rstrip('\n'))
- self.fm.cd(fzm_folder)
+ stdout, stderr = dir.communicate()
+ if dir.returncode == 0:
+ dir_folder = os.path.abspath(stdout.rstrip('\n'))
+ self.fm.cd(dir_folder)
-class fzf_select(Command):
+class fzf_file_select(Command):
"""
- :fzf_select
+ :fzf_file_select
See: https://github.com/junegunn/fzf
"""
def execute(self):
diff --git a/.config/ranger/rc.conf b/.config/ranger/rc.conf
index 010db39..763df21 100644
--- a/.config/ranger/rc.conf
+++ b/.config/ranger/rc.conf
@@ -31,10 +31,10 @@ map ep shell bash ~/.local/bin/pdftools '%s'
map er shell bash ~/.local/bin/rntools %s
# Fuzzy directory search using bookmarks
-map ed fzm_select
+map ed fzf_dir_select
# Fuzzy file search
-map ef fzf_select
+map ef fzf_file_select
# pngquant
map eg shell pngquant --ext .png -f %s