|
@ -10,7 +10,7 @@ tag app-links |
|
|
hotkey: 'return' |
|
|
hotkey: 'return' |
|
|
hotkey_display_name: '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 |
|
|
result.push temp |
|
|
|
|
|
|
|
|
temp = { |
|
|
temp = { |
|
@ -42,12 +42,18 @@ tag app-links |
|
|
} |
|
|
} |
|
|
result.push temp |
|
|
result.push temp |
|
|
|
|
|
|
|
|
temp = { |
|
|
let content = switch document.activeElement |
|
|
click_handler: do api.#link_input.focus! |
|
|
when this.api.#link_title then "" |
|
|
hotkey_display_name: "Shift+Tab" |
|
|
when this.api.#link_input then "Edit title" |
|
|
content: "Edit Link" |
|
|
else "Edit link" |
|
|
} |
|
|
|
|
|
result.push temp |
|
|
if content |
|
|
|
|
|
temp = { |
|
|
|
|
|
click_handler: do api.#link_input.focus! |
|
|
|
|
|
hotkey_display_name: "Shift+Tab" |
|
|
|
|
|
content |
|
|
|
|
|
} |
|
|
|
|
|
result.push temp |
|
|
|
|
|
|
|
|
result |
|
|
result |
|
|
|
|
|
|
|
|