hharnisc / hypercwd

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

initialWorkingDirectory is not working with Hyper v3.0.0 (stable) #71

Open berkandirim opened 5 years ago

berkandirim commented 5 years ago

Updated Hyper to 3.0.0 (stable). I've noticed initialWorkingDirectory config is not picked up. Defaults to user directory.

ecarlson94 commented 5 years ago

I have noticed that a full reload (after opening hyper) will cause it to work.

berkandirim commented 5 years ago

@ecarlson94 It works but you have to do it every time you open Hyper.

vaaski commented 5 years ago

yes, that "fixes" it for me as well, but it's pretty annoying.

mxmzb commented 5 years ago

for me, a full reload doesn't make it work (currently on hyper 3.0.2).

xtellurian commented 5 years ago

67

ricardocanelas commented 5 years ago

I am using Hyper 3.0.2

image

...and Full Reload woks for me:

image

After reload, It's opening perfectly on the initial directory as set in hyper.js

pcnate commented 5 years ago

Having the same issue with Powershell on Win10. The full reload seems to also fix an issue where splitting the screen doesn't always carry the cwd over.

stnwk commented 5 years ago

I tried to pinpoint this issue and this is what I found: https://github.com/zeit/hyper/issues/3770

Bug seems to be located in hyper codebase, so there is nothing to fix here - but I suggest we still keep the issue open until it was fixed so people can find it easier here :)

luca-aurelia commented 4 years ago

If you switch to the canary release channel of Hyper, this bug is fixed 🎉

Open your Hyper preferences and set the updateChannel key to canary:

module.exports = {
  config: {
    // choose either `'stable'` for receiving highly polished,
    // or `'canary'` for less polished but more frequent updates
    updateChannel: 'canary',

    hypercwd: {
      initialWorkingDirectory: '~/dev'
    }
  }
}
xoorath commented 3 years ago

image

Not working for me on Canary 3.0.2 on windows.

The full reload trick does work for me, but is obviously not ideal. :)

james-prado commented 3 years ago

As of version 3.1.0-canary.4 the issue seems to be resolved. The build is tagged for pre-release and can easily be installed by changing the updateChannel to "canary" in your .hyper.js config file.

CleanShot 2021-03-31 at 12 09 10@2x

It looks like this pr has been merged into the recent canary build and resolves the issue @stnwk opened.

I know the issue title specifies hyper v3.0 stable, but until v3.1 is released you'll need to use canary builds to resolve the issue.