hyper-tabs-titles
Version:
Hyper plugin to show shortened path of working directory in tab titles, along with icons. Fork of hyper-tabs-enhanced.
156 lines (131 loc) • 3.56 kB
Markdown
# hyper-tabs-titles [](https://github.com/vercel/hyper/releases/tag/v3.4.1) [](https://www.npmjs.com/package/hyper-tabs-titles)
> Enhanced Tabs + Tabs Titles Plugin for [Hyper](https://hyper.is). Shows the current working directory in the tab title. Fork of [hyper-tabs-enhanced](https://github.com/henrikruscon/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](https://github.com/henrikruscon/hyper-tabs-enhanced/)
- Tab Icons
- Colored Tabs, Tab Borders, Activity Pulse.
## Install
Add following to your `~/.hyper.js` config.
```javascript
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.
```javascript
module.exports = {
config: {
...
hyperTabs: {
openTabsThreshold: 3,
}
...
}
}
```
### Enable Traffic Buttons

Default value is `false`
```javascript
module.exports = {
config: {
...
hyperTabs: {
trafficButtons: true,
}
...
}
}
```
### Enable Border

Default value is `false`
```javascript
module.exports = {
config: {
...
hyperTabs: {
border: true,
}
...
}
}
```
### Disable Tab Icons

Default value is `true`
```javascript
module.exports = {
config: {
...
hyperTabs: {
tabIcons: false,
}
...
}
}
```
### Enable Colored Tab Icons

Default value is `false`
```javascript
module.exports = {
config: {
...
hyperTabs: {
tabIconsColored: true,
}
...
}
}
```
### Change Activity Color

Expected value is `CSS color`
```javascript
module.exports = {
config: {
...
hyperTabs: {
activityColor: 'salmon',
}
...
}
}
```
### Align Close Button Right

Default value is `'left'`
```javascript
module.exports = {
config: {
...
hyperTabs: {
closeAlign: 'right',
}
...
}
}
```
### Disable Activity Pulse
Default value is `true`
```javascript
module.exports = {
config: {
...
hyperTabs: {
activityPulse: false,
}
...
}
}
```
## Acknowledgements
- This package is a fork of [hyper-tabs-enhanced](https://github.com/henrikruscon/hyper-tabs-enhanced/) by [henrikruscon](https://github.com/henrikruscon/) with added support for modifying tab titles.