Setup sublime
This commit is contained in:
@@ -20,19 +20,22 @@ hook global InsertChar j %{ try %{
|
||||
exec -draft hH <a-k>jj<ret> d
|
||||
exec -with-hooks <esc>
|
||||
}}
|
||||
hook global RegisterModified '"' %{ nop %reg{dquote} %sh{
|
||||
printf %s "$kak_main_reg_dquote" | wl-copy > /dev/null 2>&1 &
|
||||
evaluate-commands %sh{
|
||||
if [ -n "${WAYLAND_DISPLAY:-}" ] && command -v wl-copy >/dev/null 2>&1 && command -v wl-paste >/dev/null 2>&1; then
|
||||
printf %s "
|
||||
hook global RegisterModified '\"' %{ nop %reg{dquote} %sh{
|
||||
printf %s \"\$kak_main_reg_dquote\" | wl-copy > /dev/null 2>&1 &
|
||||
}}
|
||||
|
||||
define-command -hidden paste-system-after %{
|
||||
evaluate-commands -save-regs '"' %{
|
||||
evaluate-commands -save-regs '\"' %{
|
||||
set-register dquote %sh{ wl-paste --no-newline 2>/dev/null }
|
||||
execute-keys p
|
||||
}
|
||||
}
|
||||
|
||||
define-command -hidden paste-system-before %{
|
||||
evaluate-commands -save-regs '"' %{
|
||||
evaluate-commands -save-regs '\"' %{
|
||||
set-register dquote %sh{ wl-paste --no-newline 2>/dev/null }
|
||||
execute-keys P
|
||||
}
|
||||
@@ -40,5 +43,8 @@ define-command -hidden paste-system-before %{
|
||||
|
||||
map global normal p ': paste-system-after<ret>'
|
||||
map global normal P ': paste-system-before<ret>'
|
||||
"
|
||||
fi
|
||||
}
|
||||
|
||||
add-highlighter global/ number-lines
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"theme": "Merge Dark.sublime-theme",
|
||||
/*"theme": "Merge Dark.sublime-theme",*/
|
||||
"side_bar_layout": "tabs",
|
||||
"diff_algorithm": "match_git",
|
||||
"visible_carriage_returns_at_eol": true,
|
||||
@@ -0,0 +1,28 @@
|
||||
[
|
||||
{ "keys": ["ctrl+q"], "command": "goto_definition" },
|
||||
{ "keys": ["alt+q"], "command": "jump_back" },
|
||||
|
||||
{ "keys": ["ctrl+e"], "command": "next_result" },
|
||||
{ "keys": ["alt+e"], "command": "prev_result" },
|
||||
|
||||
{ "keys": ["ctrl+up"], "command": "move", "args": {"by": "stops", "empty_line": true, "forward": false} },
|
||||
{ "keys": ["ctrl+down"], "command": "move", "args": {"by": "stops", "empty_line": true, "forward": true} },
|
||||
{ "keys": ["ctrl+shift+up"], "command": "move", "args": {"by": "stops", "empty_line": true, "forward": false, "extend": true} },
|
||||
{ "keys": ["ctrl+shift+down"], "command": "move", "args": {"by": "stops", "empty_line": true, "forward": true, "extend": true} },
|
||||
|
||||
{ "keys": ["alt+up"], "command": "swap_line_up" },
|
||||
{ "keys": ["alt+down"], "command": "swap_line_down" },
|
||||
{ "keys": ["alt+left"], "command": "jump_back" },
|
||||
{ "keys": ["alt+right"], "command": "jump_forward" },
|
||||
|
||||
{ "keys": ["alt+shift+up"], "command": "select_lines", "args": {"forward": false} },
|
||||
{ "keys": ["alt+shift+down"], "command": "select_lines", "args": {"forward": true} },
|
||||
{ "keys": ["ctrl+alt+down"], "command": "duplicate_line" },
|
||||
{ "keys": ["ctrl+alt+up"], "command": "duplicate_line" },
|
||||
|
||||
|
||||
{ "keys": ["ctrl+shift+l"], "command": "split_selection_into_lines" },
|
||||
{ "keys": ["ctrl+r"], "command": "goto_symbol_in_project" },
|
||||
{ "keys": ["ctrl+m"], "command": "toggle_record_macro" },
|
||||
{ "keys": ["alt+m"], "command": "run_macro" },
|
||||
]
|
||||
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"bootstrapped": true,
|
||||
"in_process_packages":
|
||||
[
|
||||
],
|
||||
"installed_packages":
|
||||
[
|
||||
"A File Icon",
|
||||
"ayu",
|
||||
"gruvbox",
|
||||
"Package Control",
|
||||
],
|
||||
}
|
||||
@@ -31,5 +31,8 @@
|
||||
// "line_numbers": false,
|
||||
// "gutter": false,
|
||||
// "margin": 0,
|
||||
"color_scheme": "gruvbox (Dark) (Hard).sublime-color-scheme",
|
||||
// "color_scheme": "gruvbox (Dark) (Hard).sublime-color-scheme",
|
||||
"color_scheme": "auto",
|
||||
"dark_color_scheme": "Mariana.sublime-color-scheme",
|
||||
"light_color_scheme": "Breakers.sublime-color-scheme",
|
||||
}
|
||||
@@ -91,6 +91,7 @@ input "1267:12734:ELAN06FA:00_04F3:31BE_Touchpad" {
|
||||
|
||||
# Start your launcher
|
||||
bindsym $mod+p exec $menu
|
||||
bindsym $mod+d exec /home/kk/bin/docs-list.c
|
||||
|
||||
# Drag floating windows by holding down $mod and left mouse button.
|
||||
# Resize them with right mouse button + $mod.
|
||||
|
||||
@@ -25,6 +25,11 @@ set -g history-limit 1000000
|
||||
# Reload config with prefix + r.
|
||||
bind-key r source-file ~/.config/tmux/tmux.conf \; display-message "tmux config reloaded"
|
||||
|
||||
# Open new panes/windows in the currently focused pane's directory.
|
||||
bind-key % split-window -h -c "#{pane_current_path}"
|
||||
bind-key '"' split-window -v -c "#{pane_current_path}"
|
||||
bind-key c new-window -c "#{pane_current_path}"
|
||||
|
||||
# Pane navigation with Vim-style keys
|
||||
bind-key h select-pane -L
|
||||
bind-key j select-pane -D
|
||||
|
||||
Reference in New Issue
Block a user