Skip to content

Commit 4cdde40

Browse files
committed
docs: add missing context condition names...
...from https://www.sublimetext.com/docs/key_bindings.html
1 parent 37bb39a commit 4cdde40

File tree

1 file changed

+33
-19
lines changed

1 file changed

+33
-19
lines changed

docs/reference/key_bindings.md

Lines changed: 33 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -118,9 +118,15 @@ 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+
121128
`group_has_multiselect`
122129
: Returns `true` if group has multi-select
123-
(in default key bindings, alters behavior of Alt-0 through Alt-9)
124130

125131
`has_next_field`
126132
: Returns `true`
@@ -136,36 +142,57 @@ provided by Sublime Text itself.
136142
: Returns `true` if caret(s) is (are) in a comment that
137143
starts with `/**`
138144

145+
`is_recording_macro`
146+
: Is user currently recording a macro?
147+
139148
`last_command`
140149
: Returns the name of the last command run.
141150

151+
`last_modifying_command`
152+
: Name of last command run that modified a buffer
153+
142154
`num_selections`
143155
: Returns the number of selections.
144156

157+
`overlay_has_focus`
158+
: Returns `true` if any overlay has focus.
159+
145160
`overlay_visible`
146161
: Returns `true`
147162
if any overlay is visible.
148163

149-
`overlay_has_focus`
150-
: Returns `true` if any overlay has focus.
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.
151173

152174
`panel_visible`
153175
: Returns `true`
154176
if any panel is visible.
155177

156-
`following_text`
157-
: Test against the selected text and the text
158-
following it until the end of the line.
178+
`popup_visible`
179+
: Is a popup currently being displayed?
159180

160181
`preceding_text`
161182
: Test against the text on the line up to and
162183
including the selection.
163184

185+
`read_only`
186+
: Is buffer in read-only state?
187+
164188
`selection_empty`
165189
: Returns `true`
166190
if the selection
167191
is an empty region.
168192

193+
`selector`
194+
: Name of scope for current selection.
195+
169196
`setting.x`
170197
: Returns the value of the `x` setting.
171198
`x` can be any string.
@@ -174,19 +201,6 @@ provided by Sublime Text itself.
174201
: Restricts the test
175202
to the selected text.
176203

177-
`selector`
178-
: Returns the name of the current scope.
179-
180-
`panel_has_focus`
181-
: Returns `true`
182-
if a panel
183-
has input focus.
184-
185-
`panel`
186-
: Returns `true`
187-
if the panel given as `operand`
188-
is visible.
189-
190204
<!-- Cause upper text to become a paragraph and fix a spacing bug. -->
191205

192206

0 commit comments

Comments
 (0)