I was wondering how to set the toggling of the file explorer windows to something like
Would appreciate some hint how to do this. Thanks.
No very sure if you're asking about Vim's file explorer :E or as the title suggested, the Vim leader key.
Regardless, this is my leader remap without using directly init.vim. Hope it helps.
// in the activate section of the config.tsx
oni.editors.activeEditor.neovim.command('let mapleader="\\\
// Ref: Support chorded key-presses https://github.com/onivim/oni/issues/1055
oni.editors.activeEditor.neovim.command("imap jj \
oni.editors.activeEditor.neovim.command("nnoremap \
oni.editors.activeEditor.neovim.command("nnoremap \
oni.editors.activeEditor.neovim.command("nnoremap \
oni.editors.activeEditor.neovim.command("nnoremap \
oni.editors.activeEditor.neovim.command("nnoremap \
oni.editors.activeEditor.neovim.command("nnoremap \
@Govinda-Fichtner You mean to toggle the file explorer window with <leader>e?
Oni doesn't have the concept of what your leader key is (since that is a vim concept.)
I'd suggest doing something like this:
const LEADER_KEY = ","
oni.input.bind(`${LEADER_KEY}e`, "sidebar.toggle")
That way you can re-use the leader key easily, change it easily etc.
@CrossR's suggestion does not work for the spacebar (using const LEADER_KEY = " ")
Most helpful comment
Oni doesn't have the concept of what your
leaderkey is (since that is a vim concept.)I'd suggest doing something like this:
That way you can re-use the leader key easily, change it easily etc.