aboutsummaryrefslogtreecommitdiff
path: root/.config/ranger
diff options
context:
space:
mode:
authortdro <tdro@users.noreply.github.com>2019-04-26 22:19:09 -0400
committertdro <tdro@users.noreply.github.com>2019-04-26 22:19:09 -0400
commit6d6b600146f00456d86adb17b4c2bda8f7fc5e8d (patch)
tree99bcae9cb7ec416645ffaceca9466ee49d40d7e6 /.config/ranger
parenta22f91f75b76e03a7c7a22d5a1398c61a6107b96 (diff)
downloaddotfiles-6d6b600146f00456d86adb17b4c2bda8f7fc5e8d.tar.gz
dotfiles-6d6b600146f00456d86adb17b4c2bda8f7fc5e8d.tar.bz2
dotfiles-6d6b600146f00456d86adb17b4c2bda8f7fc5e8d.zip
.config/ranger/commands.py: Get current directory files only with fzf_select
Diffstat (limited to '.config/ranger')
-rw-r--r--.config/ranger/commands.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/.config/ranger/commands.py b/.config/ranger/commands.py
index 076315b..8b130ff 100644
--- a/.config/ranger/commands.py
+++ b/.config/ranger/commands.py
@@ -23,7 +23,7 @@ class fzf_select(Command):
def execute(self):
import subprocess
import os.path
- fzf = self.fm.execute_command("fzf +m", universal_newlines=True, stdout=subprocess.PIPE)
+ fzf = self.fm.execute_command("ls -A1 --color=never | fzf +m", universal_newlines=True, stdout=subprocess.PIPE)
stdout, stderr = fzf.communicate()
if fzf.returncode == 0:
fzf_file = os.path.abspath(stdout.rstrip('\n'))