]> git.gir.st - VimFx.git/commit
Split `gl` into `gl` and `gL`
authorSimon Lydell <simon.lydell@gmail.com>
Mon, 22 Feb 2016 18:29:26 +0000 (19:29 +0100)
committerSimon Lydell <simon.lydell@gmail.com>
Mon, 22 Feb 2016 18:50:29 +0000 (19:50 +0100)
commitd93439e5aec5093417cc3580d954fc03ae558f3d
tree439fd490d7ef40ba13cde3db9f52bdfa6f4a2e5e
parent02f74554347b06ca9baa9254c7dd9d949bbf8e0c
Split `gl` into `gl` and `gL`

`gl` selects the most recent tab. Simple, right? But what if you open a
background tab? Which is the most recent tab now? Or if you open several
background tabs?

Previously, if you opened several background tabs and then pressed `gl`, the
last opened new background tab would be selected. That behavior just happened to
be.

In my opinion, it is more consistent if `gl` always selects the last _visited_
tab. An unread background tab has _not_ been visited (yet). This commit makes
this change.

If there is only one visited tab (but possibly several unread tabs), a
notification is shown telling that there is no most recent tab.

The `gL` command selects the oldest unread tab. This is useful when having
opened a bunch of background tabs. `gL` then lets you step them through in the
order you opened them. (If there are no unread tabs, a notification is shown.)

In other words, `gl` deals with _visited_ tabs only (from now on), while `gL`
deals with _unread_ tabs only.

The motivation for this commit came from piroor/treestyletab#874.
15 files changed:
documentation/commands.md
extension/lib/commands.coffee
extension/lib/defaults.coffee
extension/locale/de/vimfx.properties
extension/locale/en-US/vimfx.properties
extension/locale/fr/vimfx.properties
extension/locale/id/vimfx.properties
extension/locale/it/vimfx.properties
extension/locale/ja/vimfx.properties
extension/locale/nl/vimfx.properties
extension/locale/pt-BR/vimfx.properties
extension/locale/ru/vimfx.properties
extension/locale/sv-SE/vimfx.properties
extension/locale/zh-CN/vimfx.properties
extension/locale/zh-TW/vimfx.properties
Imprint / Impressum