My configurations for the software I use
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

More kakoune commands to run arbitrary commands

yemou e7a01597 a60a8302

+20 -9
+20 -9
config/kak/kakrc
··· 136 136 137 137 # Run command 138 138 define-command -params 1.. -command-completion -file-completion -docstring \ 139 - "Run a command and show the output the *m-run* scratch buffer" \ 139 + "Run a command and show the output in the *m-run* scratch buffer" \ 140 140 m-run %{ 141 141 try %{ delete-buffer! *m-run* } 142 142 edit -scratch *m-run* 143 - execute-keys "!%arg{@}<ret>jd" 143 + execute-keys "!%arg{@}<ret>jdgg" 144 144 } 145 145 146 146 # Run command from selection 147 147 define-command -docstring \ 148 - "Run a command from a selection and show the output the *m-run-select* scratch buffer" \ 149 - m-run-select %{ 150 - declare-option -hidden str m_select_command %val{selection} 151 - try %{ delete-buffer! *m-run-select* } 152 - edit -scratch *m-run-select* 153 - execute-keys "!%opt{m_select_command}<ret>jd" 154 - } 148 + "Run a command from a selection and show the output in the *m-run* scratch buffer" \ 149 + m-run-select %{ m-run %val{selection} } 150 + 151 + # Run command with errors 152 + define-command -params 1.. -command-completion -file-completion -docstring \ 153 + "Run a command and show the output (with errors) in the *m-run* scratch buffer" \ 154 + m-erun %{ m-run %arg{@} 2>&1 } 155 + 156 + # Run command from selection with errors 157 + define-command -docstring \ 158 + "Run a command from a selection and show the output (with errors) in the *m-run* scratch buffer" \ 159 + m-erun-select %{ m-erun %val{selection} } 160 + 161 + # Run command without output 162 + define-command -params 1.. -command-completion -file-completion -docstring \ 163 + "Run a command" \ 164 + m-nrun %{ nop %sh{ "$@" } } 155 165 156 166 # Keybinds 157 167 ## User ··· 162 172 map global user y '<a-|>wl-copy<ret>' -docstring 'Copy to System Clipboard (Wayland)' 163 173 map global user . ':source ".kakrc.local"<ret>' -docstring 'Load the kakrc file in the current directory' 164 174 map global user r ':m-run-select<ret>' -docstring 'Run the selected command' 175 + map global user R ':m-erun-select<ret>' -docstring 'Run the selected command with errors' 165 176 166 177 # Set termcmd 167 178 hook global ModuleLoaded wayland %{