hharnisc / hypercwd

Opens new tabs with the same directory as the current tab in Hyper
MIT License
384 stars 39 forks source link

Preserve for split panes only #12

Open jakearchibald opened 7 years ago

jakearchibald commented 7 years ago

Similar to #2 - it'd be great to be able to configure when the directory is preserved.

In iTerm I only preserve the directory when splitting a pane.

hharnisc commented 7 years ago

Seems like a nice config option @jakearchibald

hharnisc commented 7 years ago

Marking this as an enahancement

adrianObel commented 6 years ago

Is this being worked on at all? I don't know the codebase at all but it's a feature I'm interested in and am willing to help out

hharnisc commented 6 years ago

Hi @adrianObel 👋

This would be a great one to get some help on!

I think the configuration would look like this:

module.exports = {
  config: {
    // ... other config options

    // add the hypercwd configuration object like this
    hypercwd: {
      initialWorkingDirectory: '~/Documents',
      setNewTab: true, // default to true if not set for all of these new options
      setNewWindow: true,
      setNewPane: true,
    }
  },
}