Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
CodeMirror
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Moritz Aurel Pascal Schubotz
CodeMirror
Commits
192fd649
Commit
192fd649
authored
11 years ago
by
Marijn Haverbeke
Browse files
Options
Downloads
Patches
Plain Diff
Add note about Sublime Text keymap to docs
parent
de327de3
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
demo/sublime.html
+7
-1
7 additions, 1 deletion
demo/sublime.html
doc/manual.html
+4
-0
4 additions, 0 deletions
doc/manual.html
index.html
+2
-1
2 additions, 1 deletion
index.html
with
13 additions
and
2 deletions
demo/sublime.html
+
7
−
1
View file @
192fd649
...
@@ -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
\n
var bindings = {
\n
"
;
var
value
=
"
// The bindings defined specifically in the Sublime Text mode
\n
var bindings = {
\n
"
;
...
...
This diff is collapsed.
Click to expand it.
doc/manual.html
+
4
−
0
View file @
192fd649
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
index.html
+
2
−
1
View file @
192fd649
...
@@ -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>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment