aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/openselected.lua10
1 files changed, 8 insertions, 2 deletions
diff --git a/plugins/openselected.lua b/plugins/openselected.lua
index 02312b5..4522fe9 100644
--- a/plugins/openselected.lua
+++ b/plugins/openselected.lua
@@ -2,8 +2,8 @@
local core = require "core"
local command = require "core.command"
local keymap = require "core.keymap"
-local common = require "core.common"
local config = require "core.config"
+local contextmenu = require "plugins.contextmenu"
config.plugins.openselected = {}
@@ -42,5 +42,11 @@ command.add("core.docview", {
})
-keymap.add { ["ctrl+shift+o"] = "open-selected:open-selected" }
+contextmenu:register("core.docview", {
+ contextmenu.DIVIDER,
+ { text = "Open Selection", command = "open-selected:open-selected" }
+})
+
+
+keymap.add { ["ctrl+alt+o"] = "open-selected:open-selected" }