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

Update delete binding to use the isExplorerActive filter. #2162

Merged
merged 1 commit into from
May 3, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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