Skip to content

Hyper plugin to show path (or shortened path) of working directory in tab titles, along with icons.

License

Notifications You must be signed in to change notification settings

rajrajhans/hyper-tabs-titles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

84 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hyper-tabs-titles hyper npm

Enhanced Tabs + Tabs Titles Plugin for Hyper. Shows the current working directory in the tab title. Fork of hyper-tabs-enhanced

Features

  • Show current working directory in tab title.
  • If number of open tabs is greater than N (3 by default), show only the last directory in path.
  • All features from hyper-tabs-enhanced
    • Tab Icons
    • Colored Tabs, Tab Borders, Activity Pulse.

Install

Add following to your ~/.hyper.js config.

module.exports = {
  ...
  plugins: ['hyper-tabs-titles']
  ...
}

Config

Add following to ~/.hyper.js

Configure threshold for shortening tab titles

Default value is 3. After this number of tabs are open, only the last directory in the path will be shown in tab titles.

module.exports = {
  config: {
    ...
      hyperTabs: {
        openTabsThreshold: 3,
      }
    ...
  }
}

Enable Traffic Buttons

hyper-tabs-enhanced-traffic Default value is false

module.exports = {
  config: {
    ...
      hyperTabs: {
        trafficButtons: true,
      }
    ...
  }
}

Enable Border

hyper-tabs-enhanced-border Default value is false

module.exports = {
  config: {
    ...
      hyperTabs: {
        border: true,
      }
    ...
  }
}

Disable Tab Icons

hyper-tabs-enhanced-icons Default value is true

module.exports = {
  config: {
    ...
      hyperTabs: {
        tabIcons: false,
      }
    ...
  }
}

Enable Colored Tab Icons

hyper-tabs-enhanced-colored Default value is false

module.exports = {
  config: {
    ...
      hyperTabs: {
        tabIconsColored: true,
      }
    ...
  }
}

Change Activity Color

hyper-tabs-enhanced-activity Expected value is CSS color

module.exports = {
  config: {
    ...
      hyperTabs: {
        activityColor: 'salmon',
      }
    ...
  }
}

Align Close Button Right

hyper-tabs-enhanced-align Default value is 'left'

module.exports = {
  config: {
    ...
      hyperTabs: {
        closeAlign: 'right',
      }
    ...
  }
}

Disable Activity Pulse

Default value is true

module.exports = {
  config: {
    ...
      hyperTabs: {
        activityPulse: false,
      }
    ...
  }
}

Acknowledgements

About

Hyper plugin to show path (or shortened path) of working directory in tab titles, along with icons.

Topics

Resources

License

Stars

Watchers

Forks