- Apr 28, 2017
-
-
Marijn Haverbeke authored
-
- Mar 05, 2017
-
-
Adrian Heine authored
-
- Feb 28, 2017
-
- Feb 04, 2017
-
-
Kevin Muret authored
-
Fabien Dubosson authored
The current situation prevents to remove bindings from the default keymap in vim mode. It is sometimes required to be able to delete them in order to do some custom mapping. Example: 1. The `h` binding is defined in the default keymap for moving left. 2. The user want to set the custom binding `h<character>` to behave like `r<character>`. It can do so with: CodeMirror.Vim.mapCommand('h<character>', 'action', 'replace', {}, { isEdit: true, context: 'normal' }); 3. When the user press the `h` key, the code searches for all the keybindings matching it [1]. 4. Two bindings are found: - The default binding `h` for moving left. This is a FULL match. - The user-defined `h<character>`. This is only a PARTIAL match as it is expecting another character. 5. The code is preferring FULL matches over PARTIAL matches whenever they are in competition [2]. The code then selects the move left action. 6. The way to let the user-defined binding take over is to let the user delete the default binding: CodeMirror.Vim.unmap('h'); but this is not possible because it is not allowed to delete bindings from the default keymap [3]. This commit remove such differentiation by treating all bindings in the same way, letting the responsibility to the user to not mess with the bindings he needs. [1] https://github.com/codemirror/CodeMirror/blob/ff84b9ee73b75851801bc4004b75e35fea6291cb/keymap/vim.js#L1098 [2] https://github.com/codemirror/CodeMirror/blob/ff84b9ee73b75851801bc4004b75e35fea6291cb/keymap/vim.js#L1099-L1103 [3] https://github.com/codemirror/CodeMirror/blob/ff84b9ee73b75851801bc4004b75e35fea6291cb/keymap/vim.js#L4182 Signed-off-by:
Fabien Dubosson <fabien.dubosson@gmail.com>
-
- Nov 21, 2016
-
-
Kazuhito Hokamura authored
-
- Sep 05, 2016
-
-
nightwing authored
-
- Jul 07, 2016
-
-
Luke Granger-Brown authored
In Replace mode (or Overwrite mode) it should still go backwards without deleting characters.
-
- Jun 26, 2016
-
-
Yunchi Luo authored
and remove autocomplete bindings
-
- Apr 26, 2016
-
-
Marijn Haverbeke authored
Issue #3991
-
- Apr 05, 2016
-
-
Josh Soref authored
-
- Mar 31, 2016
-
-
Josh Soref authored
-
- Mar 28, 2016
-
-
Michael Zhou authored
The Error after the while(true) loop is not reachable and should be removed. The "this.iterator" property should be given an initial value of 0. This fixes two warnings reported by Closure Compiler.
-
- Mar 26, 2016
-
-
Michael Zhou authored
cm.save() might not exist if CodeMirror is not created from a textarea. This adds an additional check to prevent TypeErrors.
-
- Mar 24, 2016
-
-
Bharad authored
-
- Mar 21, 2016
-
-
Pierre Gerold authored
-
- Mar 07, 2016
-
-
nightwing authored
-
- Feb 18, 2016
-
-
Gabriel Horner authored
-
- Feb 03, 2016
-
-
Marijn Haverbeke authored
Closes #3806
-
- Dec 20, 2015
-
-
Erik Welander authored
zt was placing 40% of the line above the visible area, and zb was placing it too high.
-
- Dec 16, 2015
-
-
nightwing authored
-
- Dec 07, 2015
-
-
Marijn Haverbeke authored
-
- Nov 18, 2015
-
-
Kayur Patel authored
According to http://usejsdoc.org/about-getting-started.html, jsdoc comments must start with /**
-
- Jul 13, 2015
-
-
Max Schaefer authored
-
- Jun 07, 2015
-
-
Yunchi Luo authored
-
Kevin Ushey authored
- Use 'unshift' instead of 'push' to ensure newly mapped commands come first (and hence take precedence over previously mapped commands)
-
- May 20, 2015
-
- May 11, 2015
-
-
Marijn Haverbeke authored
-
- May 06, 2015
-
- Apr 26, 2015
-
- Apr 23, 2015
-
-
Yunchi Luo authored
-
- Apr 20, 2015
-
-
David Barnett authored
-
- Apr 18, 2015
-
-
David Barnett authored
-
- Apr 17, 2015
-
-
Yunchi Luo authored
-
David Barnett authored
-
- Apr 16, 2015
-
-
Marijn Haverbeke authored
-
- Apr 15, 2015
-
-
Yunchi Luo authored
-
- Apr 12, 2015
-
-
Yunchi Luo authored
-
David Barnett authored
-