-
Notifications
You must be signed in to change notification settings - Fork 694
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Performable tab and split navigation (#5644)
Partial fixes #5552 (for GTK). This PR adds the core infrastructure for keybind actions that are implemented as runtime app actions to be performable. This is done by having `rt_app.performAction` return a boolean. By default all runtime app actions return `true` (the action was performed) unless they are modified to return `true`/`false` as appropriate. The GTK apprt is modified so that `goto_split`, `previous_tab`, `next_tab`, `last_tab`, and `goto_tab` are performable. macOS support will need to be added in a subsequent commit. This doesn't completely solve the issue for the OP because if the `goto_split` isn't performable there is no fallback to`previous_tab` or `next_tab`. I don't think that the approach taken in #5579 is the right one as it conflates split and tab navigation unconditionally which I don't think is what everyone would want. Either a separate action that explicitly combines the actions or a solution to #3175 will be the ultimate solution I believe.
- Loading branch information
Showing
10 changed files
with
145 additions
and
113 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.