Added in cut, copy and paste to the context menu. Also removed find pattern, as that's no longer a valid command. Also made it so commands only show up if their predicates are valid.
This commit is contained in:
1 parent
d7b6fe3d42
commit
64f66e5d1e
5 files changed
+42
-23
No files matched your search
@@ -41,6 +41,9 @@ function command.get_all_valid()
|
||||
return res
|
||||
end
|
||||
|
||||
function command.is_valid(name, ...)
|
||||
return command.map[name] and command.map[name].predicate(...)
|
||||
end
|
||||
|
||||
local function perform(name, ...)
|
||||
local cmd = command.map[name]
|
||||
|
||||
Reference in new issue
Block a user