Oni: How to open/close the file explorer?

Created on 26 Feb 2018  路  6Comments  路  Source: onivim/oni

How can we open/close the file explorer on the left?

question

Most helpful comment

You can use <Ctrl+Shift+B> to toggle the side bar, or if you'd prefer some other keybind, you could unbind that and rebind any set of keys using the Oni input API and the command "sidebar.toggle", ie putting the folloing in the activate section of your config.js:

oni.input.unbind("<s-c-b>")
oni.input.bind("<s-c-q>", "sidebar.toggle")

All 6 comments

You can use <Ctrl+Shift+B> to toggle the side bar, or if you'd prefer some other keybind, you could unbind that and rebind any set of keys using the Oni input API and the command "sidebar.toggle", ie putting the folloing in the activate section of your config.js:

oni.input.unbind("<s-c-b>")
oni.input.bind("<s-c-q>", "sidebar.toggle")

Sweeet. Seems intuitive that clicking on the icon in the left bar would also open/close the view.

There are two improvements that are very needed for the Sidebar at the moment:

  • Have an option for the Sidebar to not be shown on startup (but still be enabled)
  • Have better gui controls for the sidebar (resizing and toggling mostly)

I think the question was answered already so we can close this issue and track the improvements somewhere else or discuss these items here.

this doesn't seem to work on OSx. anybody else experiencing this issue?

@brianyang on OSX the shortcut is command shift b.

The sidebar default state can be configured with sidebar.default.open. The shortcut was already clarified.

Progress on sidebar functionality is being tracked on separate issues.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

bfulop picture bfulop  路  3Comments

LucianBuzzo picture LucianBuzzo  路  3Comments

rgehan picture rgehan  路  3Comments

badosu picture badosu  路  3Comments

TalAmuyal picture TalAmuyal  路  3Comments