aboutsummaryrefslogtreecommitdiffstats
path: root/content_scripts/vimium_frontend.coffee
diff options
context:
space:
mode:
authorStephen Blott2016-09-14 06:10:08 +0100
committerStephen Blott2016-09-14 06:10:08 +0100
commitfd20405ddf27365cfaf69e16289b2fc6d39c2a5e (patch)
tree62044c33f016acfa47a84b56e92b9639b33f58e0 /content_scripts/vimium_frontend.coffee
parent0006776fecdd5eb02da8973ae6856824c090c82e (diff)
downloadvimium-fd20405ddf27365cfaf69e16289b2fc6d39c2a5e.tar.bz2
Match globa-mark URLs by length.
This changes the logic for selecting an existing tab when using global marks. Previously, an exact RUL match was required. Here, we only require a prefix match. For example, if the global-mark URL is: https://inbox.google.com/u/0/ Then a tab with the URL https://inbox.google.com/u/0/sent will be selected. This is a more usable approach when the user uses global marks to visit important sites like gmail, Facebook or Twitter. On these sites, the URL changes, but the user still thinks of the tab as their "gmail tab", for example. Also, when choosing between multiple candidate tabs: - If there is at least one candidate in the current window, then only consider candidates in the current window. - If there are more than one candidates, then don't select the current tab. - Finally, select the remaining candidate with the shortest URL. Closes #2248.
Diffstat (limited to 'content_scripts/vimium_frontend.coffee')
0 files changed, 0 insertions, 0 deletions