Skip to content

Commit b9e16a4

Browse files
authored
Merge pull request #125 from vwheeler63/docs/minor_improvements2
docs: fix typo and newly discovered keymap context condition...
2 parents a7b1ec4 + 4cdde40 commit b9e16a4

File tree

2 files changed

+42
-17
lines changed

2 files changed

+42
-17
lines changed

docs/reference/commands.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ Runs an external process asynchronously. On Windows, GUIs are supressed.
190190

191191
`exec` is the default command used by build systems, thus it provides
192192
similar functionality. However, a few options in build systems are taken
193-
care of by Sublime Text internally so they list below only contains
193+
care of by Sublime Text internally so the list below only contains
194194
parameters accepted by this command.
195195

196196
- **cmd** [(String)]

docs/reference/key_bindings.md

Lines changed: 41 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,16 @@ provided by Sublime Text itself.
118118
if the autocomplete list
119119
is visible.
120120

121+
`eol_select`
122+
: Selector to match scope name at end of current line
123+
124+
`following_text`
125+
: Test against the selected text and the text
126+
following it until the end of the line.
127+
128+
`group_has_multiselect`
129+
: Returns `true` if group has multi-select
130+
121131
`has_next_field`
122132
: Returns `true`
123133
if a next snippet field
@@ -128,33 +138,61 @@ provided by Sublime Text itself.
128138
if a previous snippet field
129139
is available.
130140

141+
`is_javadoc`
142+
: Returns `true` if caret(s) is (are) in a comment that
143+
starts with `/**`
144+
145+
`is_recording_macro`
146+
: Is user currently recording a macro?
147+
131148
`last_command`
132149
: Returns the name of the last command run.
133150

151+
`last_modifying_command`
152+
: Name of last command run that modified a buffer
153+
134154
`num_selections`
135155
: Returns the number of selections.
136156

157+
`overlay_has_focus`
158+
: Returns `true` if any overlay has focus.
159+
137160
`overlay_visible`
138161
: Returns `true`
139162
if any overlay is visible.
140163

164+
`panel`
165+
: Returns `true`
166+
if the panel given as `operand`
167+
is visible.
168+
169+
`panel_has_focus`
170+
: Returns `true`
171+
if a panel
172+
has input focus.
173+
141174
`panel_visible`
142175
: Returns `true`
143176
if any panel is visible.
144177

145-
`following_text`
146-
: Test against the selected text and the text
147-
following it until the end of the line.
178+
`popup_visible`
179+
: Is a popup currently being displayed?
148180

149181
`preceding_text`
150182
: Test against the text on the line up to and
151183
including the selection.
152184

185+
`read_only`
186+
: Is buffer in read-only state?
187+
153188
`selection_empty`
154189
: Returns `true`
155190
if the selection
156191
is an empty region.
157192

193+
`selector`
194+
: Name of scope for current selection.
195+
158196
`setting.x`
159197
: Returns the value of the `x` setting.
160198
`x` can be any string.
@@ -163,19 +201,6 @@ provided by Sublime Text itself.
163201
: Restricts the test
164202
to the selected text.
165203

166-
`selector`
167-
: Returns the name of the current scope.
168-
169-
`panel_has_focus`
170-
: Returns `true`
171-
if a panel
172-
has input focus.
173-
174-
`panel`
175-
: Returns `true`
176-
if the panel given as `operand`
177-
is visible.
178-
179204
<!-- Cause upper text to become a paragraph and fix a spacing bug. -->
180205

181206

0 commit comments

Comments
 (0)