aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjgmdev <jgmdev@gmail.com>2022-03-11 05:16:08 -0400
committerjgmdev <jgmdev@gmail.com>2022-05-22 13:16:10 -0400
commit5101cc11bd9be38b2e35b939853d1c97d2e1ef12 (patch)
tree62de4757eb20d679319e54db29c61b48110990e7
parent0e00602297e885d165f2f75a630b7644ccaa7a12 (diff)
downloadlite-xl-plugins-5101cc11bd9be38b2e35b939853d1c97d2e1ef12.tar.gz
lite-xl-plugins-5101cc11bd9be38b2e35b939853d1c97d2e1ef12.zip
openselected: added context menu, changed conflicting shortcut
-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" }