mirror of
https://github.com/mrfluffy-dev/hart-cli.git
synced 2026-01-17 01:40:33 +00:00
Remove: preview for persist mode
This commit is contained in:
11
hart-cli.py
11
hart-cli.py
@@ -202,13 +202,15 @@ def browse_options(session, user_prompt, *, persist=False, persist_with=None):
|
||||
|
||||
options = {
|
||||
"[d]ownload": UserBrowseSelection.DOWNLOAD,
|
||||
"p[r]eview": UserBrowseSelection.PREVIEW,
|
||||
}
|
||||
|
||||
if not persist:
|
||||
options[
|
||||
"[p]ersist selection for next in queue"
|
||||
] = UserBrowseSelection.PERSIST_SELECTION
|
||||
options.update(
|
||||
{
|
||||
"[p]ersist selection for next in queue": UserBrowseSelection.PERSIST_SELECTION,
|
||||
"p[r]eview": UserBrowseSelection.PREVIEW,
|
||||
}
|
||||
)
|
||||
|
||||
if pyperclip is not None:
|
||||
options["[c]opy to clipboard"] = UserBrowseSelection.COPY_TO_CLIPBOARD
|
||||
@@ -276,5 +278,6 @@ def __main__(query=None):
|
||||
persist_with=persist_with,
|
||||
)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
__main__(*sys.argv[1:])
|
||||
|
||||
Reference in New Issue
Block a user