View
Edit
- Ctrl-Shift-G (provided not dirty) — Goto a page (in new tab, unlike in view)
- Ctrl-Alt-G – go to word on link under the cursor (in new tab)
- if there is a selection, take that is the link to go to.
- if there is no selection, see if we are in the middle of a link
(i.e. let a be location of previous
[, and depending on whether we find[or[[, let b be location of next ) or]].- If
[[then/\[\[([^\]]+)\]\]/and upon successful match go tomatch[1] - If not
[then/\[[^\]]+\]\(([^)]+)\)/and upon successful match go tomatch[1]. - Confine these searches to within a paragraph. So we want
get bounds of paragraphandget paragraphfunctions to confine our search.
- If
- if we are not inside a link, and we are within a word (including at the start and end), go to that word.