Skip to content
This repository has been archived by the owner on Apr 1, 2020. It is now read-only.

Commit

Permalink
Update delete binding to use the isExplorerActive filter. (#2162)
Browse files Browse the repository at this point in the history
  • Loading branch information
CrossR authored May 3, 2018
1 parent 2196aa0 commit eaf6695
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions browser/src/Input/KeyBindings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,6 @@ export const applyDefaultKeyBindings = (oni: Oni.Plugin.Api, config: Configurati
input.bind("<enter>", "menu.select")
input.bind(["<enter>", "<space>"], "select")

input.bind("<delete>", "explorer.delete")

// TODO: Scope 's' to just the local window
input.bind("<c-g>", "sneak.show", () => isNormalMode() && !menu.isMenuOpen())
input.bind(["<esc>", "<c-c>"], "sneak.hide")
Expand All @@ -135,7 +133,9 @@ export const applyDefaultKeyBindings = (oni: Oni.Plugin.Api, config: Configurati

// Explorer
input.bind("d", "explorer.delete.persist", isExplorerActive)
input.bind("<c-delete>", "explorer.delete.persist", isExplorerActive)
input.bind("<c-d>", "explorer.delete", isExplorerActive)
input.bind("<delete>", "explorer.delete", isExplorerActive)
input.bind("y", "explorer.yank", isExplorerActive)
input.bind("p", "explorer.paste", isExplorerActive)
input.bind("u", "explorer.undo", isExplorerActive)
Expand Down

0 comments on commit eaf6695

Please sign in to comment.