From 2ac0e7c2dcd98595ec36c957c99068d5087b93d8 Mon Sep 17 00:00:00 2001 From: Charles Cabergs Date: Sun, 20 Jun 2021 10:41:59 +0200 Subject: 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 --- config/julia/startup.jl | 17 +++++++++++++++++ config/qutebrowser/config.py | 3 +++ config/vim/vimrc | 2 +- 3 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 config/julia/startup.jl (limited to 'config') 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('', '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('', '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 :GFiles +nnoremap :GFiles --exclude-standard --others --cached nnoremap p :Tags " }}} -- cgit