henrikruscon / hyper-statusline

Status Line Plugin for Hyper
MIT License
386 stars 79 forks source link

Request - Make directory and git branch click events optional #64

Open blkdr opened 6 years ago

blkdr commented 6 years ago

Add an option to let the user choose from what they want to do if they click on the directory or branch name.

Why? Some users may accidentally click on the directory or branch name and the plugin automatically open the directory or the browser.

Examples:

...
hyperStatusLine: {
  onDirectoryClick: 'none',
  onBranchClick: 'copyBranchName'
}
...

/*
  onDirectoryClick:
    'none'
    'copyDirectoryName'
    'openDirectory' // default
  onBranchClick
    'none'
    'copyBranchName'
    'copyBranchURL'
    'openBranchURL' // default
*/

none should be enough if copy to clipboard is not possible.