Skip to content

Instantly share code, notes, and snippets.

@dajare
Created March 4, 2026 09:52
Show Gist options
  • Select an option

  • Save dajare/eae05c049a5ea5eff4427051643499e9 to your computer and use it in GitHub Desktop.

Select an option

Save dajare/eae05c049a5ea5eff4427051643499e9 to your computer and use it in GitHub Desktop.
My VSCodium user keybindings (for SE productions)
// Place your key bindings in this file to override the defaults
[
{
"key": "ctrl+alt+e",
"command": "editor.action.insertSnippet",
"when": "editorTextFocus",
"args": {
"snippet": " epub:type=\"z3998:letter\""
}
},
{
"key": "ctrl+alt+n",
"command": "editor.action.insertSnippet",
"when": "editorTextFocus",
"args": {
"snippet": " epub:type=\"z3998:personal-name\""
}
},
{
"key": "ctrl+alt+m",
"command": "editor.action.insertSnippet",
"when": "editorTextFocus",
"args": {
"snippet": " epub:type=\"z3998:given-name\""
}
},
{
"key": "alt+shift+z",
"command": "editor.action.insertSnippet",
"when": "editorTextFocus",
"args": {
"snippet": "<a href=\"endnotes.xhtml#note-${1:_}\" id=\"noteref-${1}\" epub:type=\"noteref\">${1}</a>"
},
"description": "inserts endnote anchor with single insert for number"
},
{
"key": "ctrl+alt+=",
"command": "editor.action.transformToTitlecase"
},
{
"key": "ctrl+alt+/",
"command": "extension.filterTextInplace",
"args": { "cmd": "se titlecase -n" },
"description": "runs se titlecase on selected string"
},
{
"key": "ctrl+alt+q",
"command": "editor.action.insertSnippet",
"when": "editorHasSelection",
"args": { "name": "dquo.wrap" },
"description": "wrap selected string in ldquo + rdquo"
},
{
"key": "ctrl+alt+j",
"command": "editor.action.joinLines"
},
{
"key": "ctrl+alt+x",
"command": "editor.action.insertSnippet",
"when": "editorTextFocus",
"args": {
"snippet": " xml:lang=\"${1|fr,la,de,it|}\"$0"
}
},
{
"key": "ctrl+alt+r",
"command": "editor.emmet.action.removeTag",
"description": "remove HTML tags from string-with-cursor"
}
]
@dajare
Copy link
Author

dajare commented Mar 4, 2026

This is the snippet needed with dquo.wrap (mapped to crtl+alt+q:

{
	// Place your global snippets here...

	"dquo.wrap": {
		"scope": "html,xhtml",
		"prefix": "dquowrap",
		"body": "“$TM_SELECTED_TEXT”$0",
		"description": "Wrap selected text in curly quotes and position cursor right of the closing quote"
	}

}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment