-
Notifications
You must be signed in to change notification settings - Fork 24
Commands
Arjun Gadhia edited this page Feb 6, 2019
·
2 revisions
kboard includes a VIM-like syntax for adding special macro keys, to perform tasks like cursor movements, copy/pasting and text manipulation.
A command key has the following format:
/<friendly label>!<comma separated commands>
Example:
/Italicise!dw,i(_$0_)
This creates a key titled "Italicise", which does the following: dw
deletes the previous word and adds it to the buffer, i
inserts the text in the brackets (which would be the deleted word wrapped in underscores.
Most commands can be preceded by a number, indicating how many times it will be run.
Available commands:
-
d
delete previous character -
dw
delete previous word -
3dw
delete previous three words -
dd
delete all -
dt(char)
deletes (backwards) up to and including the specified character -
ds
- deletes either the selected text, or if nothing is selected then deletes everything. -
yy
copy all -
y
copy selection -
p
paste from buffer -
pc
paste from clipboard -
sa
select all -
i(text)
output the content of the brackets ($0 gets replaced * with the last deleted/copied content) -
iraw(text)
as i, but does not adhere to settings such as autospace or Passive Aggressive -
upper(text)
as i, but in upper case -
lower(text)
as i, but lower case -
j
move cursor back by a character -
k
move cursor forward by a character -
b
move cursor back by a word -
w
move cursor forward by a word -
s
trigger a send command -
e(...)
execute the command in the brackets -
rnd
output a random kboard key -
rnd(word1;word2;...)
output a random word from the comma separated list -
rnde
output a random emoji -
fr(from;to)
replace all instances offrom
toto
-
fancy(style)
outputs buffer text with funky unicode characters (circle, darkcircle,square,darksquare,double,monospace,fancy,fancybold) -
curl(URL)
requests data from a URL and outputs it.