Skip to content
Snippets Groups Projects
Commit 192fd649 authored by Marijn Haverbeke's avatar Marijn Haverbeke
Browse files

Add note about Sublime Text keymap to docs

parent de327de3
No related branches found
No related tags found
No related merge requests found
...@@ -43,7 +43,13 @@ ...@@ -43,7 +43,13 @@
<p>The <code>sublime</code> keymap defines many Sublime Text-specific <p>The <code>sublime</code> keymap defines many Sublime Text-specific
bindings for CodeMirror. See the code below for an overview.</p> bindings for CodeMirror. See the code below for an overview.</p>
<p>(A lot of the search functionality is still missing.)</p> <p>Enable the keymap by
loading <a href="../keymap/sublime.js"><code>keymap/sublime.js</code></a>
and setting
the <a href="../doc/manual.html#option_keyMap"><code>keyMap</code></a>
option to <code>"sublime"</code>.</p>
<p>(A lot of the search functionality is still missing.)
<script> <script>
var value = "// The bindings defined specifically in the Sublime Text mode\nvar bindings = {\n"; var value = "// The bindings defined specifically in the Sublime Text mode\nvar bindings = {\n";
......
...@@ -686,6 +686,10 @@ ...@@ -686,6 +686,10 @@
is an object mapping strings that identify the keys to functions is an object mapping strings that identify the keys to functions
that implement their functionality.</p> that implement their functionality.</p>
<p>The CodeMirror distributions comes
with <a href="../demo/emacs.html">Emacs</a>, <a href="../demo/vim.html">Vim</a>,
and <a href="../demo/sublime.html">Sublime Text</a>-style keymaps.</p>
<p>Keys are identified either by name or by character. <p>Keys are identified either by name or by character.
The <code>CodeMirror.keyNames</code> object defines names for The <code>CodeMirror.keyNames</code> object defines names for
common keys and associates them with their key codes. Examples of common keys and associates them with their key codes. Examples of
......
...@@ -71,6 +71,7 @@ ...@@ -71,6 +71,7 @@
<option value="demo/search.html">Search interface</option> <option value="demo/search.html">Search interface</option>
<option value="demo/vim.html">Vim bindings</option> <option value="demo/vim.html">Vim bindings</option>
<option value="demo/emacs.html">Emacs bindings</option> <option value="demo/emacs.html">Emacs bindings</option>
<option value="demo/sublime.html">Sublime Text bindings</option>
<option value="demo/tern.html">Tern integration</option> <option value="demo/tern.html">Tern integration</option>
<option value="demo/merge.html">Merge/diff interface</option> <option value="demo/merge.html">Merge/diff interface</option>
<option value="demo/fullscreen.html">Full-screen editor</option> <option value="demo/fullscreen.html">Full-screen editor</option>
...@@ -121,7 +122,7 @@ ...@@ -121,7 +122,7 @@
<li><a href="doc/manual.html#addon_show-hint">Autocompletion</a> (<a href="demo/xmlcomplete.html">XML</a>) <li><a href="doc/manual.html#addon_show-hint">Autocompletion</a> (<a href="demo/xmlcomplete.html">XML</a>)
<li><a href="doc/manual.html#addon_foldcode">Code folding</a> <li><a href="doc/manual.html#addon_foldcode">Code folding</a>
<li><a href="doc/manual.html#option_extraKeys">Configurable</a> keybindings <li><a href="doc/manual.html#option_extraKeys">Configurable</a> keybindings
<li><a href="demo/vim.html">Vim</a> and <a href="demo/emacs.html">Emacs</a> bindings <li><a href="demo/vim.html">Vim</a>, <a href="demo/emacs.html">Emacs</a>, and <a href="demo/sublime.html">Sublime Text</a> bindings
<li><a href="doc/manual.html#addon_search">Search and replace</a> interface <li><a href="doc/manual.html#addon_search">Search and replace</a> interface
<li><a href="doc/manual.html#addon_matchbrackets">Bracket</a> and <a href="doc/manual.html#addon_matchtags">tag</a> matching <li><a href="doc/manual.html#addon_matchbrackets">Bracket</a> and <a href="doc/manual.html#addon_matchtags">tag</a> matching
<li>Support for <a href="demo/buffers.html">split views</a> <li>Support for <a href="demo/buffers.html">split views</a>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment