-f and -ff only in contentdir, not in basedir
This commit is contained in:
parent
699a172f81
commit
f92528b265
1 changed files with 2 additions and 2 deletions
4
hgh.py
4
hgh.py
|
@ -125,11 +125,11 @@ def interactive_categories(search):
|
||||||
os.system("/usr/bin/cat {filename} | fzf --delimiter=':' -n 2 -q '{search}'".format(filename = config["sites"][args.site_name]["list_categories"], search=search))
|
os.system("/usr/bin/cat {filename} | fzf --delimiter=':' -n 2 -q '{search}'".format(filename = config["sites"][args.site_name]["list_categories"], search=search))
|
||||||
|
|
||||||
def find_anything(search):
|
def find_anything(search):
|
||||||
os.chdir(config["sites"][args.site_name]["basedir"])
|
os.chdir(config["sites"][args.site_name]["contentdir"])
|
||||||
os.system("/usr/bin/rg -i --column --line-number --no-heading \'{search}\'".format(search=search))
|
os.system("/usr/bin/rg -i --column --line-number --no-heading \'{search}\'".format(search=search))
|
||||||
|
|
||||||
def find_anything_fuzzy(search):
|
def find_anything_fuzzy(search):
|
||||||
os.chdir(config["sites"][args.site_name]["basedir"])
|
os.chdir(config["sites"][args.site_name]["contentdir"])
|
||||||
os.system("/usr/bin/rg -i --column --line-number --no-heading \'{search}\' content | fzf --bind 'f4:execute({editor} {{1}})' {bind_explorer} {preview} {preview_window} --with-nth=1.. -e --delimiter=':'".format(search=search, editor=config["settings"]["bin_editor"], preview="--preview 'batcat --style=full --color=always --line-range :500 {1}'", preview_window="--preview-window=top:50%:wrap", bind_explorer="--bind \'f3:execute(xdg-open \"$(dirname {})\")\'"))
|
os.system("/usr/bin/rg -i --column --line-number --no-heading \'{search}\' content | fzf --bind 'f4:execute({editor} {{1}})' {bind_explorer} {preview} {preview_window} --with-nth=1.. -e --delimiter=':'".format(search=search, editor=config["settings"]["bin_editor"], preview="--preview 'batcat --style=full --color=always --line-range :500 {1}'", preview_window="--preview-window=top:50%:wrap", bind_explorer="--bind \'f3:execute(xdg-open \"$(dirname {})\")\'"))
|
||||||
|
|
||||||
def site_upload():
|
def site_upload():
|
||||||
|
|
Loading…
Reference in a new issue