Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Select focused pane for each window #878

Open
mpeter50 opened this issue Sep 3, 2023 · 0 comments
Open

Select focused pane for each window #878

mpeter50 opened this issue Sep 3, 2023 · 0 comments

Comments

@mpeter50
Copy link

mpeter50 commented Sep 3, 2023

Is your feature request related to a problem? Please describe.

For windows that have multiple panes, I often have to navigate to the primary pane (which is not necessarily the largest in the layout) manually.

Describe the solution you'd like

There could be a window level option where the number or the name of the pane could be given, like focused_pane in the example below:

name: sample
root: ~/

windows:
  - stats:
    - tail -f /var/log/stats.log
  - logs:
      layout: main-vertical
      focused_pane: example
      panes:
        - logs:
          - tail -f development.log
        - example:
          - echo 'example 2nd pane'

(the focused_pane setting may also accept the pane number for the same effect)

Describe alternatives you've considered

An other solution could be having a pane level boolean option for designating the pane to be focused, however considering that panes are always lists of commands to be executed, this would probably also involve a larger change, like moving commands to be under a commands list inside the pane.

Additional context
There were already attempts of similar feature requests, but they were closed with a change that did not solve the request.

  • How to give focus to a particular pane/window #455 was closed saying that it is already possible to designate a focused pane, but that only applies for the starting window, even though the issue requested the ability for each window separately too
  • Possibility to define which pane will be active. #52 was closed with a merge request that changed how the default active pane selection works for each window, without making it configurable, so that it works for that specific situation that was brought up as an example by the issue author, but also does not fulfill the actual feature request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant