Skip to content
This repository was archived by the owner on Mar 3, 2023. It is now read-only.
This repository was archived by the owner on Mar 3, 2023. It is now read-only.

tracking tabs by events is a little mess #10654

Closed

Description

@paulpflug

for my package foldername-tabs I need to track the tabs to change their content. After long research this is the only way that works for me:

# doesn't fire on reorder within or between panes, but tabs are getting repainted everywhere
atom.workspace.onDidAddPaneItem processAllTabs

atom.workspace.observePanes (pane) ->
 # doesn't fire on split called in tabs but fires on split called in tree-view
 # also doesn't fire on reorder between panes
 # pane.onDidAddItem processAllTabs 

 # fires on reorder between panes
 pane.onDidRemoveItem processAllTabs

 # fires on reorder within panes
 pane.onDidMoveItem processAllTabs 

In my eyes there are three issues:

  • tabs shouldn't get repainted on move or reorder
  • split called in tabs should work exactly as split called in tree-view
  • how to get an event for reordering within a pane isn't obvious (onDidRemoveItem, but not onDidAddItem)

what do you think?

Activity

  1. lee-dohm commented on Feb 3, 2016

    @lee-dohm
    Contributor

    What if there was an API in the tabs package for controlling the title text of the tabs themselves? You wouldn't need any of this tab tracking ... when a tab needed to know what text to put there, it could ask your package and you could give it the answer.

  2. paulpflug commented on Feb 3, 2016

    @paulpflug
    Author

    Of course, that would be more than awesome 😄

  3. lee-dohm commented on Feb 3, 2016

    @lee-dohm
    Contributor

    Would you mind opening an Issue on the tabs package requesting this then? Please @-mention me on the Issue if and when you create it.

  4. Ben3eeE commented on Oct 9, 2016

    @Ben3eeE
    Contributor

    Closing since the feedback got moved to an enhancement issue on the tabs package.

  5. lock commented on Apr 4, 2018

    @lock

    This issue has been automatically locked since there has not been any recent activity after it was closed. If you can still reproduce this issue in Safe Mode then please open a new issue and fill out the entire issue template to ensure that we have enough information to address your issue. Thanks!

  6. locked and limited conversation to collaborators on Apr 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions