{{event_type}}
variable
#393
Closed
Taitava
started this conversation in
Ideas - done & released
Replies: 1 comment
-
This was released earlier in |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm not sure if I've already written about this idea. Maybe not, as I didn't find anything relevant when searching for event type.
If multiple events are enabled for a shell command, it could be useful to know which event actually executed it.
{{event_type}}
gives an exact identifier for the triggered event.{{event_type:category}}
gives a "group" name for the event. Multiple events can share the same category.data.json
{{event_type}}
{{event_type:category}}
on-layout-ready
application-started
application
on-quit
application-quit
application
on-active-leaf-changed
active-leaf-switched
workspace
caret-moved
data.json
editor
every-n-seconds
data.json
time
file-menu
file-menu-item
menu
folder-menu
folder-menu-item
menu
editor-menu
editor-menu-item
menu
file-content-modified
data.json
file
file-created
data.json
file
file-deleted
data.json
file
file-moved
data.json
file
file-renamed
data.json
file
folder-created
data.json
folder
folder-deleted
data.json
folder
folder-moved
data.json
folder
folder-renamed
data.json
folder
*) Caret moves in editor is still incomplete, and its details may change.
**) Menu events will have a trailing
-item
, because I'm thinking there might befile/folder/editor-menu-opens
events in the future, that could allow executing shell commands already when a context menu opens up.For events whose Event code in
data.json
differs from{{event_type}}
, I'm planning to change thedata.json
codes sometime in the future, so that they will be the same as the{{event_type}}
values.Beta Was this translation helpful? Give feedback.
All reactions