diff options
| author | Stephen Blott | 2018-06-15 15:41:19 +0100 |
|---|---|---|
| committer | Stephen Blott | 2018-06-15 15:41:22 +0100 |
| commit | 4cf37b5c5e9ba7b8e4b4c72a960761624d8151e8 (patch) | |
| tree | 754518c68da2441513a95c322333f6045738768a /background_scripts | |
| parent | 5745bb344959a61297fc16e00bb6de0a2a8744d9 (diff) | |
| download | vimium-4cf37b5c5e9ba7b8e4b4c72a960761624d8151e8.tar.bz2 | |
Use hash (too) for local marks.
First, I *very rarely* use local marks. They just don't seem as useful
in a browser as they are in a text editor.
However, on a page like GMail, I do often want to jump back and forward
between my labels. These are different locations hashes (anchors).
The idea here is to make local marks useful for this case.
If the scroll positions (X and Y) are both 0, and the hash (anchor) is
present in the mark and non-empty, then change the hash instead of
scrolling.
On first tests, this appears to work nicely for changing labels in
GMail. I'm sure there are other uses.
This change shouldn't interfere with use cases where the user has
scrolled within the page.
Diffstat (limited to 'background_scripts')
0 files changed, 0 insertions, 0 deletions
