hyper-tab-touchbar

Show hyper tabs in the MacBook Pro's TouchBar

Usage no npm install needed!

<script type="module">
  import hyperTabTouchbar from 'https://cdn.skypack.dev/hyper-tab-touchbar';
</script>

README

hyper-tab-touchbar

Use your MacBook Pro's TouchBar to jump to your tabs

Install

From hyper terminal: hyper i hyper-tab-touchbar

Features:

  • Show your open tabs in your MacBook Pro's TouchBar
  • Click on the tabs to jump to the specific tab
  • If you have hyper-folder-icon installed, you can have your Volumes and custom folder's icons shown in the TouchBar

alt text

Optional Configuration keys

  • All inside hyperTouchBar object
  • activeColor -> hex rgb value string like '#005566' (that's the default value)
  • inactiveColor -> hex rgb value string like '#777777' (that's the default value)
  • specialButton -> Object containing a script path exporting an arrow function (window) => {} ; By default it 'clears' the active terminal
{
  activeColor: '#005566',
  inactiveColor: '#777777',
  specialButton: {
    label: 'clear',
    onClick: 'path_to_file.js'
  }
}

The script simply exports a function:

module.exports = {
  hyperTouchBarOnClick: () => {
    console.log('Hello World');
  }
};

set specialButton to undefined if you don't want the special button to be shown