|
|
@ -10,7 +10,7 @@ tag app-links |
|
|
|
hotkey: 'return' |
|
|
|
hotkey_display_name: 'Return' |
|
|
|
} |
|
|
|
temp.content = api.selected_link.is_bang ? "Use Bang" : "Navigate To Link" |
|
|
|
temp.content = api.selected_link.is_bang ? "Use Bang" : [api.#link_input, api.#link_title].includes(document.activeElement) ? state.link_selection_index == -1 ? "Add New Link" : "Edit Link" : "Navigate To Link" |
|
|
|
result.push temp |
|
|
|
|
|
|
|
temp = { |
|
|
@ -42,10 +42,16 @@ tag app-links |
|
|
|
} |
|
|
|
result.push temp |
|
|
|
|
|
|
|
let content = switch document.activeElement |
|
|
|
when this.api.#link_title then "" |
|
|
|
when this.api.#link_input then "Edit title" |
|
|
|
else "Edit link" |
|
|
|
|
|
|
|
if content |
|
|
|
temp = { |
|
|
|
click_handler: do api.#link_input.focus! |
|
|
|
hotkey_display_name: "Shift+Tab" |
|
|
|
content: "Edit Link" |
|
|
|
content |
|
|
|
} |
|
|
|
result.push temp |
|
|
|
|
|
|
|