GithubHelp home page GithubHelp logo

Comments (24)

leo avatar leo commented on April 28, 2024 129

Who's 👍 on adding hypercwd as a default plugin? I definitely am!

Just 👍 or 👎 this comment.

from hyper.

leo avatar leo commented on April 28, 2024 53

https://github.com/hharnisc/hypercwd

from hyper.

matheuss avatar matheuss commented on April 28, 2024 34

I'm 👍 for adding it as a feature, not as a default plugin 😅

from hyper.

kenmorechalfant avatar kenmorechalfant commented on April 28, 2024 11

hypercwd doesn't seem to work on Windows 10.

from hyper.

hharnisc avatar hharnisc commented on April 28, 2024 8

So I've got this working locally now!

Accepting #174 and adding hypercwd to your list of plugins in ~/.hyperterm.js will make this available.

from hyper.

JonathanNathanson avatar JonathanNathanson commented on April 28, 2024 6

HyperCWD doesn't work anymore... get runtime errors when opening new tab.

from hyper.

hharnisc avatar hharnisc commented on April 28, 2024 3

There's a couple things to think about before closing this out.

Do we add a plugin (like hypercwd - yes I'm biased 😜) to the default config or leave it to the user to add it.

If we add it by default will it re-add every time HyperTerm gets updated? If it does, probably will want to prevent that from happening.

P.S. The plugin API is awesome!

from hyper.

alex35mil avatar alex35mil commented on April 28, 2024 3

@leo Sure, done!

from hyper.

bevacqua avatar bevacqua commented on April 28, 2024 3

I'm 👎 for adding it as a default plugin or feature. I'd much prefer to be able to pick a default directory with something like this plugin I made: hyperterm-working-directory.

I'd be more open about a built-in feature like hyperterm-working-directory, but with the ability to use the last cwd (e.g by setting workingDirectory to'<mirror>').

Many users expect a constant default directory, this is something you can do in iTerm 2+, for example

from hyper.

ppot avatar ppot commented on April 28, 2024 2

This is mostly a feature needed when you do a split plan of a current projet, Let say I have one pane for running npm run dev and in the other pane npm start. So opening the new pane with the same pwd is handy. But not for new tab since they mostly table differents concert or call.

from hyper.

oskarkrawczyk avatar oskarkrawczyk commented on April 28, 2024 1

@leo I shouldn't have downvoted the whole comment – I just think this would be a cool addition, but perhaps a bit too much as the default behavior. It's purely subjective, but I never did like this is Terminal.

from hyper.

mendeza avatar mendeza commented on April 28, 2024 1

I agree with @leo. In various terminal emulators this is typically a user preference set in config.

from hyper.

alex35mil avatar alex35mil commented on April 28, 2024 1

Also same directory for new window would be great.

from hyper.

dhelbegor avatar dhelbegor commented on April 28, 2024 1

did anyone manage to do the open split in the same directory on windows wsl ?. hyper cwd is not working with wsl :/

from hyper.

leo avatar leo commented on April 28, 2024

Already part of the "TODO" list. IMHO, all of these should be issues though.

from hyper.

rauchg avatar rauchg commented on April 28, 2024

I wonder if we should make this the default behavior? Or a default plugin that's enabled built-in?

from hyper.

leo avatar leo commented on April 28, 2024

It looks like there are people (like @oskarkrawczyk), who don't like this. So the best way to handle it would probably be something that's enabled by default (like with terminal.app), but can also be disabled.

Is there a special reason to make it a plugin? IMHO, it should just be a config option.

from hyper.

langolf avatar langolf commented on April 28, 2024

If you use tmux, it already has this feature when you create new pane.
I think default behavior should be $HOME directory as in other terminals.

Or you can have checkbox for tmux-like behavior.

from hyper.

hharnisc avatar hharnisc commented on April 28, 2024

Just to call a few things out here.

This is line that opens the terminal to $HOME directory:

https://github.com/zeit/hyperterm/blob/master/session.js#L26

I like the idea of making this a plugin, but adding it to the default config plugins.

This follows the pattern that Atom editor set out solid defaults that you can change

@rauchg I'm reverse engineering some of the code, and the deeper I dig the more I think I need to provide some hooks into the session before I can write a plugin. Does that seem right to you?

from hyper.

hharnisc avatar hharnisc commented on April 28, 2024

I think the above commit should provide what's needed to solve this. For this to work the plugin would need to update the session's cwd when it changes. Still feel like I'm missing something obvious though.

from hyper.

leo avatar leo commented on April 28, 2024

@alexfedoseev Great idea! But please move your issue over to hypercwd.

from hyper.

gtdeng avatar gtdeng commented on April 28, 2024

@JonathanNathanson It's working on mine
image

Try updating?

from hyper.

hyochan avatar hyochan commented on April 28, 2024

Any news on window? Still facing runtime error when trying to open new terminal with hypercwd installed.

Uncaught Exception:
Error: Unable to start terminal process: CreateProcess failed
  at new WindowsPtyAgent
....

from hyper.

KrDimitrov avatar KrDimitrov commented on April 28, 2024

This issue should definitely be reopened. Its seems like hypercwd is dead and broken.... I'd be happy to contribute if needed!

from hyper.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.