Added page refresh functionality

This commit is contained in:
Luxferre
2023-04-02 18:09:13 +03:00
parent 7558a6f0cd
commit 3543983ca1
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -74,6 +74,7 @@ No. Besides the ambiguity problem, it will also introduce huge external dependen
- Link navigation (keyboard): s - focus on the next link, w - focus on the previous link, Enter/Space - visit the focused link (or download if it points to a binary file), d - force-download the contents of the link - Link navigation (keyboard): s - focus on the next link, w - focus on the previous link, Enter/Space - visit the focused link (or download if it points to a binary file), d - force-download the contents of the link
- Link navigation (mouse, if supported): left click on the link - focus and visit (or download if it points to a binary file), middle click - focus and force-download the contents - Link navigation (mouse, if supported): left click on the link - focus and visit (or download if it points to a binary file), middle click - focus and force-download the contents
- Go back: b or right mouse click anywhere (if supported) - Go back: b or right mouse click anywhere (if supported)
- Refresh the page: r
- Stash the link to the currently open resource: S (shift+s) - Stash the link to the currently open resource: S (shift+s)
- Quit the browser: q - Quit the browser: q
+1
View File
@@ -379,6 +379,7 @@ while true; do
[[ "$cmdbuf" == '[B' || "$cmdbuf" == 'j' || "$mousecmd" == '65' ]] && scroll 1 [[ "$cmdbuf" == '[B' || "$cmdbuf" == 'j' || "$mousecmd" == '65' ]] && scroll 1
[[ "$cmdbuf" == '[5' || "$cmdbuf" == 'h' ]] && scroll $(( 1 - $TERMROWS )) # PgUp [[ "$cmdbuf" == '[5' || "$cmdbuf" == 'h' ]] && scroll $(( 1 - $TERMROWS )) # PgUp
[[ "$cmdbuf" == '[6' || "$cmdbuf" == 'l' ]] && scroll $(( $TERMROWS - 1 )) # PgDn [[ "$cmdbuf" == '[6' || "$cmdbuf" == 'l' ]] && scroll $(( $TERMROWS - 1 )) # PgDn
[[ "$cmdbuf" == 'r' ]] && amload "$CURRENTAM" # refresh the page without updating history
[[ "$cmdbuf" == 's' ]] && jumplink 1 [[ "$cmdbuf" == 's' ]] && jumplink 1
[[ "$cmdbuf" == 'w' ]] && jumplink -1 [[ "$cmdbuf" == 'w' ]] && jumplink -1
[[ "$cmdbuf" == 'q' ]] && printf '%s' "$ERESET$ALTBUFOFF" && exit 0 [[ "$cmdbuf" == 'q' ]] && printf '%s' "$ERESET$ALTBUFOFF" && exit 0