2 # Copyright Simon Lydell 2015.
4 # This file is part of VimFx.
6 # VimFx is free software: you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation, either version 3 of the License, or
9 # (at your option) any later version.
11 # VimFx is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 # GNU General Public License for more details.
16 # You should have received a copy of the GNU General Public License
17 # along with VimFx. If not, see <http://www.gnu.org/licenses/>.
20 notation = require('vim-like-key-notation')
27 'o': 'focus_location_bar'
28 'O': 'focus_search_bar'
30 'P': 'paste_and_go_in_tab'
31 'yy': 'copy_current_url'
36 'L': 'history_forward'
40 'aR': 'reload_all_force'
49 '<space>': 'scroll_page_down'
50 '<s-space>': 'scroll_page_up'
51 'd': 'scroll_half_page_down'
52 'u': 'scroll_half_page_up'
54 'G': 'scroll_to_bottom'
55 '0 ^': 'scroll_to_left'
56 '$': 'scroll_to_right'
61 'J gT': 'tab_select_previous'
62 'K gt': 'tab_select_next'
63 'gJ': 'tab_move_backward'
64 'gK': 'tab_move_forward'
65 'gH g0': 'tab_select_first'
66 'g^': 'tab_select_first_non_pinned'
67 'gL g$': 'tab_select_last'
68 'gp': 'tab_toggle_pinned'
71 'gx$': 'tab_close_to_end'
72 'gxa': 'tab_close_other'
77 'gf': 'follow_in_focused_tab'
78 'af': 'follow_multiple'
81 '[': 'follow_previous'
87 'a/': 'find_highlight_all'
92 'i': 'enter_mode_insert'
103 '<space>': 'rotate_markers_forward'
104 '<s-space>': 'rotate_markers_backward'
105 '<backspace>': 'delete_hint_char'
108 '<escape> <enter>': 'exit'
111 'hint_chars': 'fjdkslaghrueiwovncm'
112 'prev_patterns': 'prev,previous,‹,«,◀,←,<<,<,back,newer'
113 'next_patterns': 'next,›,»,▶,→,>>,>,more,older'
115 'prevent_autofocus': true
116 'ignore_keyboard_layout': false
119 'autofocus_limit': 100
120 'smoothScroll.lines.spring-constant': '1000'
121 'smoothScroll.pages.spring-constant': '2500'
122 'smoothScroll.other.spring-constant': '2500'
128 for modeName, modeShortcuts of shortcuts
129 for keys, name of modeShortcuts
130 key_options["mode.#{ modeName }.#{ name }"] = keys
132 all = Object.assign({}, options, advanced_options, key_options)
134 exports.options = options
135 exports.advanced_options = advanced_options
136 exports.key_options = key_options
138 exports.BRANCH = 'extensions.VimFx.'