Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

API request: controlling the title text of the tabs #256

Open

Description

@paulpflug

From: atom/atom#10654
Mention: @lee-dohm

For my package foldername-tabs I currently need to track the tabs to change their content. This is very tedious, as tabs are getting repainted nearly everywhere. (I need 1 watcher on workspace and two on every pane)

A api, which would let me control the text directly, would make my package about 80% lighter and would ensure good interop with other packages (currently I manipulate the dom directly).

This is what I would need:

consumeTabsPainter: (Tab) ->
  unless Tab.isSpecial # like options
    # assuming the element is cached within tabs and this is only called on tab create and path change
    Tab.onChange (fullpath) ->
      element = doSomething(Tab.fullpath)
      return element
    # assuming the element is cached within the package and this is called on every repaint
    element = doSomethingWCaching(Tab.fullpath)
    Tab.setLabel(element)  
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions