-
Notifications
You must be signed in to change notification settings - Fork 1
quicktype module
gabdub edited this page Aug 1, 2022
·
9 revisions
this module adds the following bindings:
- ALT+1 ALT+2 ALT+3 ALT+4 ALT+5 ALT+0: type some C snippets that I frequently use
- ALT+6: convert the selected text from hex to ascii ('536F6674' or '53 6F 66 74' or '53,6F,66,74' => 'Soft') and optionally copy the result to the clipboard
- ALT+&: generate/verify S19 checksum from the selected text ('536F6674' or 'S1536F6674' => '63'; verify 'S1536F667463' => '00'=OK) and optionally copy the result to the clipboard
- ALT+7: code block comment (always in column 1, don't use / * .. * /, check all lines before uncommenting)
- ALT+8: sort current buffer
- ALT+9: multiline typer = type some text at the beginning / end of each text line
- ALT+): select rectangular column down
- CONTROL+, CONTROL+.: Goto previous/next lua function/C-block begin
- CONTROL+; CONTROL+:: Goto previous/next lua function end/C-block end
Usage:
Copy quicktype module into ~/.textadept/modules and add the following to your personal init.lua file:
require('util')
require('quicktype')see quicktype code