]> git.gir.st - VimFx.git/commit
Rework custom shortcut prefs
authorSimon Lydell <simon.lydell@gmail.com>
Sun, 24 May 2015 14:07:33 +0000 (16:07 +0200)
committerSimon Lydell <simon.lydell@gmail.com>
Sat, 20 Jun 2015 13:41:28 +0000 (15:41 +0200)
commit3add9b43a547983ebd814ed2c13344a24ce7a5c6
tree004a4a33740fbd6c1198ad33d4d224d9135e61d5
parentc1bc315c86f2d00ac2f719a1b6a7142002b2ddd0
Rework custom shortcut prefs

- Defaults are now set for all prefs (including custom shortcuts and advanced
  options), not just the options that can be seen in the options UI.
- All command prefs are now named 'mode.<mode>.<command>'. So are the
  translation IDs for the commands. This helps to simplify the code.
- Migration from the 0.5.x format and the format used in the devlopment version
  up until this commit can now be done once, instead of at every startup and
  every shortcut change.
- All old custom shortcut prefs are migrated automatically, using a generalized
  migration facility that can be reused for other migrations in the future.
- Some command names were slightly renamed to improve consistency and to make
  the more descriptive. The latter is important since regular users are now
  expected to be able to read lib/defaults.coffee as documentation on all
  default shortcuts.
23 files changed:
extension/bootstrap.coffee
extension/lib/command.coffee
extension/lib/commands.coffee
extension/lib/defaults.coffee
extension/lib/main.coffee
extension/lib/migrations.coffee [new file with mode: 0644]
extension/lib/modes.coffee
extension/lib/prefs.coffee
extension/lib/utils.coffee
extension/locale/de/vimfx.properties
extension/locale/el-GR/vimfx.properties
extension/locale/en-US/vimfx.properties
extension/locale/fr/vimfx.properties
extension/locale/hu/vimfx.properties
extension/locale/id/vimfx.properties
extension/locale/it/vimfx.properties
extension/locale/ja/vimfx.properties
extension/locale/nl/vimfx.properties
extension/locale/pl/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