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/julia | |
| 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/julia')
| -rw-r--r-- | config/julia/startup.jl | 17 |
1 files changed, 17 insertions, 0 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) |
