aboutsummaryrefslogtreecommitdiff
path: root/data/core/commands/root.lua
AgeCommit message (Collapse)Author
2022-08-16Allow command predicates to manage parameters passed to the commandsGuldoman
When a command is performed with parameters, those are now passed to the predicate. The predicate can then return, after the validity boolean, any other value that will then be passed to the actual command. If the predicate only returns the validity boolean, the original parameters are passed through to the actual command. This allows predicates to manipulate the received parameters, and allows them to pass the result of an expensive computation to the actual command, which won't have to recalculate it. String and table predicates will now also return `core.active_view`.
2022-02-09Fix cases of nil node.jgmdev
2021-11-23Manual merge of into .Adam Harrison
2021-11-16Fixed predicate and minor propogation issue.Adam Harrison
2021-11-14Also changed docview mousewheel into a scroll command.Adam Harrison
2021-10-16Check both values returned by `Node:get_locked_size`Guldoman
2021-08-10Pairs -> IPairsAdam Harrison
2021-08-10Added in close others, and refactored close all.Adam Harrison
2021-06-27Created an extra command, to implement appropriat cmd+w behaviour on mac.Adam Harrison
2021-03-18Fix error introduced with commit c0ad86dFrancesco Abbate
2021-01-13Add command root:close-allFrancesco Abbate
2020-05-19Added core.set_active_view(); removed `focusable` boolean from Viewrxi
2020-05-09Added commands `root:shrink` and `root:grow`rxi
2020-02-01Fixed root:switch-to-* commandSergei V. Rogachev
Before the fix navigation between nodes in the root view was broken: the scale factor wasn't taken into account. Switching in the right and down directions was impossible for scale factors greater than one.
2019-12-28Initial commitrxi