Initial Commit
This commit is contained in:
59
kakrc
Normal file
59
kakrc
Normal file
@@ -0,0 +1,59 @@
|
|||||||
|
# width of tab
|
||||||
|
set-option global tabstop 2
|
||||||
|
|
||||||
|
# indent with 2 spaces
|
||||||
|
set-option global indentwidth 2
|
||||||
|
|
||||||
|
# always keep lines and columns around the cursor
|
||||||
|
set-option global scrolloff 5,3
|
||||||
|
|
||||||
|
# display status bar on top
|
||||||
|
#set-option global ui_options terminal_status_on_top=true
|
||||||
|
|
||||||
|
# display line numbers
|
||||||
|
add-highlighter global/ number-lines -relative -min-digits 4
|
||||||
|
# highlight trailing whitespace
|
||||||
|
add-highlighter global/ regex \h+$ 0:Error
|
||||||
|
# softwrap long lines
|
||||||
|
add-highlighter global/ wrap -word -indent
|
||||||
|
# highlight matching characters
|
||||||
|
add-highlighter global/ show-matching
|
||||||
|
|
||||||
|
# Words not separated by hyphen-characters
|
||||||
|
set-option global extra_word_chars _ -
|
||||||
|
|
||||||
|
# colorscheme
|
||||||
|
colorscheme gruvbox-light
|
||||||
|
set-option global ui_options terminal_assistant=clippy
|
||||||
|
|
||||||
|
# Disable mouse
|
||||||
|
set -add global ui_options terminal_enable_mouse=0
|
||||||
|
|
||||||
|
# keybindings
|
||||||
|
declare-user-mode exiting
|
||||||
|
declare-user-mode table
|
||||||
|
declare-user-mode job
|
||||||
|
map global user <i> <a-i> -docstring "Select Exclusive"
|
||||||
|
map global user <a> <a-a> -docstring "Select Inclusive"
|
||||||
|
map global user <o> :b<space> -docstring "Change Buffer"
|
||||||
|
#map global table <t> <a-i>ps<space>{2,}<ret>d,<a-i>ps\|<ret>&, -docstring "Format Table" # for markdown
|
||||||
|
map global user <d> <a-!>date<space>+"<space>[%Y-%m-%d<space>%a<space>%H:%M:%S]"<ret>\;d -docstring "Insert Date"
|
||||||
|
map global user <t> :enter-user-mode<space>table<ret> -docstring "Table Operations"
|
||||||
|
map global table <i> <a-i>c\|===,\|===<ret><a-\;>L<a-\;> -docstring "Select Table Inclusive" # for asciidoc
|
||||||
|
map global table <a> <a-a>c\|===,\|===<ret><a-\;>K<a-\;>GLL -docstring "Select Table Exclusive" # for asciidoc
|
||||||
|
map global table <t> <a-i>c\|===,\|===<ret>s\|<ret>&, -docstring "Format Table" # for asciidoc
|
||||||
|
#map global table <d> <a-i>c\|===,\|===<ret>s(<space>+\||\|<space>+)<ret>s<space><ret>d, -docstring "Delete Repeated Spaces" # for asciidoc
|
||||||
|
map global table <d> <a-i>c\|===,\|===<ret>s(<space>*\|<space>*)<ret>s<space><ret>d, -docstring "Delete Repeated Spaces" # for asciidoc
|
||||||
|
map global user <c> <a-!>qalc<space>""<left> -docstring "Calculate"
|
||||||
|
|
||||||
|
# Case-insensitive search bindings I found on the internet
|
||||||
|
map global normal '/' /(?i) -docstring 'case insensitive search'
|
||||||
|
map global normal '<a-/>' <a-/>(?i) -docstring 'case insensitive backward search'
|
||||||
|
map global normal '?' ?(?i) -docstring 'case insensitive extend search'
|
||||||
|
map global normal '<a-?>' <a-?>(?i) -docstring 'case insensitive backward extend-search'
|
||||||
|
|
||||||
|
map global user m :enter-user-mode<space>exiting<space><ret> -docstring "Open Exit Menu"
|
||||||
|
map global exiting m :w<ret>:db<ret>:q<ret> -docstring "Write, Close Buffer, Quit"
|
||||||
|
|
||||||
|
map global user j :enter-user-mode<space>job<space><ret> -docstring "Open Job Menu"
|
||||||
|
map global job t !cat<space>~/jobs/a_job_template.adoc<ret> -docstring "Insert Job Template"
|
||||||
Reference in New Issue
Block a user