AutoYADM commit: 2025-07-26 18:03:38
This commit is contained in:
parent
39458a8af4
commit
ef79ece47e
2 changed files with 11 additions and 4 deletions
|
@ -191,8 +191,15 @@ hook global BufWritePost .*/\.config/niri/.*\.kdl(##.+)? %{
|
|||
}
|
||||
|
||||
declare-filetype-mode markdown
|
||||
define-command markdown-code-block %{
|
||||
execute-keys 'o```<esc>o```<esc>kA'
|
||||
define-command -params 0..1 markdown-code-block %{
|
||||
execute-keys 'o```<esc>o```<esc><c-l>kA'
|
||||
hook -once window InsertKey <ret> %{
|
||||
execute-keys '<c-l>'
|
||||
}
|
||||
}
|
||||
map -docstring 'codeblock' global markdown ` ': markdown-code-block<ret>'
|
||||
map -docstring 'bold' global markdown b ':surround-add-pair "**" "**"<ret>'
|
||||
map -docstring 'unbold' global markdown <a-b> ':surround-delete-key *<ret>:surround-delete-key *<ret>'
|
||||
map -docstring 'emph' global markdown e ':surround-add-pair "_" "_"<ret>'
|
||||
map -docstring 'unemph' global markdown <a-e> ':surround-delete-key _<ret>'
|
||||
map -docstring 'lazygit' global git g ': terminal lazygit<ret>'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue