You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
884 B

2 years ago
tag app-edit < app-prompt
def handle_click_set_default_bang
if editing_link.is_bang isnt true
return err "setting default bang", "Link is not a bang."
config.default_bang = editing_link
save_config!
editing_link = no
state.query = prior_query
prior_query = ''
sort_links!
def render
<self>
2 years ago
<.tips>
<.tip
@click=(active = no)
2 years ago
>
<.tip-hotkey> "Esc"
<.tip-content> "Cancel Edits"
if editing_link.is_bang
2 years ago
<.tip
2 years ago
@click=handle_click_set_default_bang
>
<.tip-hotkey> "Click"
<.tip-content> "Set Default Bang"
2 years ago
<.tip
2 years ago
@click=handle_shift_return
>
<.tip-hotkey> "Shift + Return"
<.tip-content[of:hidden text-overflow:ellipsis white-space:nowrap]>
"Update Link"
2 years ago
<.tip
2 years ago
@click=handle_shift_backspace
>
<.tip-hotkey> "Shift + Backspace"
<.tip-content> "Delete Link"