Compare commits

...

1 Commits

Author SHA1 Message Date
famubu 06baace30e edited keyboard shortcuts 2022-04-09 14:23:43 +05:30
1 changed files with 16 additions and 3 deletions

View File

@ -181,11 +181,24 @@ func (c *client) TakeControlInput() {
c.ClearMessage()
distance := c.Height - c.Height/4
c.Scroll(-distance)
case 'f':
// Scroll down 100%
c.ClearMessage()
distance := c.Height
c.Scroll(distance)
case 'b':
// Scroll up 100%
c.ClearMessage()
distance := c.Height
c.Scroll(-distance)
case 'U':
// Move up a directory for the current host
url := c.PageState.History[c.PageState.Position].Location.Full
c.Visit(UpOneDir(url))
case 'b', 'h':
case 'H': // case 'b', 'h':
// Go back
c.ClearMessage()
err := c.PageState.NavigateHistory(-1)
@ -211,7 +224,7 @@ func (c *client) TakeControlInput() {
// Toggle the bookmark browser
c.BookMarks.ToggleOpen()
c.Draw()
case 'f', 'l':
case 'L': // case 'f', 'l':
// Go forward
c.ClearMessage()
err := c.PageState.NavigateHistory(1)
@ -1276,4 +1289,4 @@ func getMaxWidth(options map[string]string) int {
out = 10
}
return out
}
}