micro/internal/action
Dmytro Maluka c6dc5a4b1f Call onSetActive when switching to another tab
We should call the onSetActive callback not only when switching to
another bufpane within the same tab but also when switching to another
tab.

Note on implementation details:

- In SetActive() we need to check if the tab is not already active, to
  avoid calling onSetActive for an already active bufpane.

- We cannot check that just by checking if the tab index passed to
  SetActive() is different from the current active tab index, since this
  index may remain the same even if the tab itself is different (in the
  case of removing a tab from the tablist). So we need to check the tab
  itself, not just the tab index. So we introduce the isActive field,
  to track the tab's active state in the Tab structure itself.
2024-04-12 02:07:29 +02:00
..
actions.go Escape regex in pre-filled search pattern in Find prompt 2024-03-15 12:25:39 +01:00
actions_other.go Change project layout and use go.mod 2019-12-25 17:05:10 -05:00
actions_posix.go Fix v2 import path for go mod 2020-05-04 10:16:15 -04:00
bindings.go Merge pull request #2959 from JoeKar/fix/raw-esc-sequence 2024-03-14 04:38:05 +01:00
bufpane.go chore: fix some typos (#3239) 2024-04-08 12:04:38 +02:00
command.go command: Prevent re-writing settings in case of local option (#3178) 2024-04-11 18:35:13 +02:00
defaults.go Update keybinding docs 2020-09-06 17:38:23 -04:00
defaults_darwin.go Merge pull request #2606 from dmaluka/mouse-release-and-drag-events 2024-03-14 03:54:04 +01:00
defaults_other.go Merge pull request #2606 from dmaluka/mouse-release-and-drag-events 2024-03-14 03:54:04 +01:00
events.go Introduce mouse release and mouse drag events 2023-01-29 18:21:59 +01:00
globals.go Improve comments 2021-08-21 17:58:30 -04:00
infocomplete.go infocomplete: Complete filetypes (follow-up) (#3218) 2024-03-27 18:58:12 +01:00
infopane.go Forward resize event to both TabList and InfoBar (#3179) 2024-03-21 21:40:22 +01:00
keytree.go More style improvements 2021-08-21 18:04:08 -04:00
pane.go More style improvements 2021-08-21 18:04:08 -04:00
rawpane.go Update to tcell v2 2020-09-05 14:52:35 -04:00
tab.go Call onSetActive when switching to another tab 2024-04-12 02:07:29 +02:00
terminal_supported.go Check error in terminal emulator 2020-07-27 17:43:55 -04:00
terminal_unsupported.go Use actual lua functions for callbacks instead of strings 2020-02-08 15:49:41 -05:00
termpane.go Fix internal string binding representation 2020-11-05 15:52:25 -05:00