mirror of
https://gitea.phreedom.club/localhost_frssoft/funkwlmpv
synced 2024-11-25 23:09:20 +02:00
Hiden preview-window for small screens (press ?); Moved default fzf options
This commit is contained in:
parent
f97fd0b2d0
commit
bdebbcf2b3
|
@ -16,6 +16,7 @@ from shlex import quote
|
||||||
from shutil import get_terminal_size
|
from shutil import get_terminal_size
|
||||||
from pyfzf.pyfzf import FzfPrompt
|
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()
|
fzf = FzfPrompt()
|
||||||
|
|
||||||
os.system('clear')
|
os.system('clear')
|
||||||
|
|
|
@ -8,9 +8,7 @@ from shlex import quote
|
||||||
import mpv
|
import mpv
|
||||||
import time
|
import time
|
||||||
import re
|
import re
|
||||||
import os
|
|
||||||
|
|
||||||
os.environ['FZF_DEFAULT_OPTS'] = '--margin 2,0,0,0'
|
|
||||||
fzf = FzfPrompt()
|
fzf = FzfPrompt()
|
||||||
|
|
||||||
if get_config('enable_persistent_cache'):
|
if get_config('enable_persistent_cache'):
|
||||||
|
|
Loading…
Reference in New Issue