diff options
| author | Charles Cabergs <me@cacharle.xyz> | 2021-06-20 10:41:59 +0200 |
|---|---|---|
| committer | Charles Cabergs <me@cacharle.xyz> | 2021-06-20 10:41:59 +0200 |
| commit | 2ac0e7c2dcd98595ec36c957c99068d5087b93d8 (patch) | |
| tree | f508a5cb5180b4e13eca11eb2ee0b64405df3320 /config | |
| parent | 85ad32e67a37e3b290e0d6719f378ee85a32f4ec (diff) | |
| download | dotfiles-2ac0e7c2dcd98595ec36c957c99068d5087b93d8.tar.gz dotfiles-2ac0e7c2dcd98595ec36c957c99068d5087b93d8.tar.bz2 dotfiles-2ac0e7c2dcd98595ec36c957c99068d5087b93d8.zip | |
Updated vimrc fzf GFiles to show untracked files aswell, Updated qutebrowser binding close tab to dd instead of d, Added julia startup.jl to have navigation history vim bindings
Diffstat (limited to 'config')
| -rw-r--r-- | config/julia/startup.jl | 17 | ||||
| -rw-r--r-- | config/qutebrowser/config.py | 3 | ||||
| -rw-r--r-- | config/vim/vimrc | 2 |
3 files changed, 21 insertions, 1 deletions
diff --git a/config/julia/startup.jl b/config/julia/startup.jl new file mode 100644 index 0000000..bc1bae7 --- /dev/null +++ b/config/julia/startup.jl @@ -0,0 +1,17 @@ +# https://docs.julialang.org/en/v1/stdlib/REPL/#Key-bindings +# +import REPL +import REPL.LineEdit + +const mykeys = Dict{Any,Any}( + # Up Arrow + "\\C-k" => (s,o...)->(LineEdit.edit_move_up(s) || LineEdit.history_prev(s, LineEdit.mode(s).hist)), + # Down Arrow + "\\C-j" => (s,o...)->(LineEdit.edit_move_down(s) || LineEdit.history_next(s, LineEdit.mode(s).hist)) + ) + +function customize_keys(repl) + repl.interface = REPL.setup_interface(repl; extra_repl_keymap = mykeys) +end + +atreplinit(customize_keys) diff --git a/config/qutebrowser/config.py b/config/qutebrowser/config.py index 3f266bc..1d9af27 100644 --- a/config/qutebrowser/config.py +++ b/config/qutebrowser/config.py @@ -73,6 +73,9 @@ config.bind('<F12>', 'devtools', 'normal') config.bind('j', 'scroll-page 0 0.05', 'normal') config.bind('k', 'scroll-page 0 -0.05', 'normal') +config.unbind('d', 'normal') +config.bind('dd', 'tab-close', 'normal') + c.colors.webpage.darkmode.enabled = True # Convert light themed sites to dark theme config.bind('<Ctrl-Shift-t>', 'config-cycle -p content.proxy socks://localhost:9050/ system', mode='normal') diff --git a/config/vim/vimrc b/config/vim/vimrc index 53a6b62..8debac1 100644 --- a/config/vim/vimrc +++ b/config/vim/vimrc @@ -282,7 +282,7 @@ set wildignore=*/doc/*,*/tmp/*,*.o,*.so,*.a,*.swp,*.zip,*/node_modules/*,*/vendo " }}} " fzf.vim {{{ -nnoremap <C-p> :GFiles<CR> +nnoremap <C-p> :GFiles --exclude-standard --others --cached<CR> nnoremap <leader>p :Tags<CR> " }}} |
