Move stuff into /home
This commit is contained in:
parent
d9bf49b218
commit
dc1b4e9371
26 changed files with 3 additions and 1 deletions
29
home/kakoune/autoload/markdown.kak
Normal file
29
home/kakoune/autoload/markdown.kak
Normal file
|
@ -0,0 +1,29 @@
|
|||
hook global WinSetOption filetype=(markdown) %{
|
||||
map buffer normal <c-b> ": enter-user-mode markdown-menu<ret>"
|
||||
}
|
||||
|
||||
# A menu for common markdown actions
|
||||
declare-user-mode markdown-menu
|
||||
|
||||
map -docstring "Toggle the checkboxes on the same line" global markdown-menu t ": markdown-toggle-checkbox<ret>"
|
||||
|
||||
define-command -hidden markdown-toggle-checkbox %{
|
||||
try %{
|
||||
execute-keys -draft "<a-x>s^\s*- \[( |x)\]<ret>h: markdown-toggle-checkbox-selections<ret>"
|
||||
}
|
||||
}
|
||||
|
||||
define-command -hidden markdown-toggle-checkbox-selections %{
|
||||
try %{
|
||||
execute-keys -draft -itersel ": markdown-toggle-checkbox-one<ret>"
|
||||
}
|
||||
}
|
||||
|
||||
define-command -hidden markdown-toggle-checkbox-one %{
|
||||
try %{
|
||||
execute-keys -draft "sx<ret>r "
|
||||
} catch %{
|
||||
execute-keys -draft "s <ret>rx"
|
||||
}
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue