From bdebbcf2b3d35c4f4c2d424f1e89c0f1ae0a3aed Mon Sep 17 00:00:00 2001 From: localhost_frssoft Date: Fri, 16 Jun 2023 20:54:29 +0300 Subject: [PATCH] Hiden preview-window for small screens (press ?); Moved default fzf options --- funkwhale_cli.py | 1 + src/mpv_control.py | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/funkwhale_cli.py b/funkwhale_cli.py index fb873dc..ddf00cc 100755 --- a/funkwhale_cli.py +++ b/funkwhale_cli.py @@ -16,6 +16,7 @@ from shlex import quote from shutil import get_terminal_size from pyfzf.pyfzf import FzfPrompt +os.environ['FZF_DEFAULT_OPTS'] = "--margin 2,0,0,0 --preview-window down:2:hidden:wrap --bind ?:toggle-preview --preview 'echo {}'" fzf = FzfPrompt() os.system('clear') diff --git a/src/mpv_control.py b/src/mpv_control.py index a2705d5..e8c2bfd 100644 --- a/src/mpv_control.py +++ b/src/mpv_control.py @@ -8,9 +8,7 @@ from shlex import quote import mpv import time import re -import os -os.environ['FZF_DEFAULT_OPTS'] = '--margin 2,0,0,0' fzf = FzfPrompt() if get_config('enable_persistent_cache'):