mirror of
https://github.com/makeworld-the-better-one/amfora.git
synced 2024-11-26 10:15:13 +03:00
Add 'e' keybinding feature to edit current URL
This commit is contained in:
parent
a22a1191f2
commit
298034078e
@ -295,6 +295,12 @@ func Init() {
|
|||||||
// Don't save bottom bar, so that whenever you switch tabs, it's not in that mode
|
// Don't save bottom bar, so that whenever you switch tabs, it's not in that mode
|
||||||
App.SetFocus(bottomBar)
|
App.SetFocus(bottomBar)
|
||||||
return nil
|
return nil
|
||||||
|
case "e":
|
||||||
|
// Letter e allows to edit current URL
|
||||||
|
bottomBar.SetLabel("[::b]Edit URL: [::-]")
|
||||||
|
bottomBar.SetText(tabs[curTab].page.URL)
|
||||||
|
App.SetFocus(bottomBar)
|
||||||
|
return nil
|
||||||
case "R":
|
case "R":
|
||||||
Reload()
|
Reload()
|
||||||
return nil
|
return nil
|
||||||
|
@ -25,6 +25,7 @@ spacebar|Open bar at the bottom - type a URL, link number, search term.
|
|||||||
|Typing new:N will open link number N in a new tab
|
|Typing new:N will open link number N in a new tab
|
||||||
|instead of the current one.
|
|instead of the current one.
|
||||||
Numbers|Go to links 1-10 respectively.
|
Numbers|Go to links 1-10 respectively.
|
||||||
|
e|Edit current URL
|
||||||
Enter, Tab|On a page this will start link highlighting.
|
Enter, Tab|On a page this will start link highlighting.
|
||||||
|Press Tab and Shift-Tab to pick different links.
|
|Press Tab and Shift-Tab to pick different links.
|
||||||
|Press Enter again to go to one, or Esc to stop.
|
|Press Enter again to go to one, or Esc to stop.
|
||||||
|
Loading…
Reference in New Issue
Block a user