Comments (24)
Who's 👍 on adding hypercwd as a default plugin? I definitely am!
Just 👍 or 👎 this comment.
from hyper.
https://github.com/hharnisc/hypercwd
from hyper.
I'm 👍 for adding it as a feature, not as a default plugin 😅
from hyper.
hypercwd doesn't seem to work on Windows 10.
from hyper.
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.
HyperCWD doesn't work anymore... get runtime errors when opening new tab.
from hyper.
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.
from hyper.
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.
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.
@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.
I agree with @leo. In various terminal emulators this is typically a user preference set in config.
from hyper.
Also same directory for new window would be great.
from hyper.
did anyone manage to do the open split in the same directory on windows wsl ?. hyper cwd is not working with wsl :/
from hyper.
Already part of the "TODO" list. IMHO, all of these should be issues though.
from hyper.
I wonder if we should make this the default behavior? Or a default plugin that's enabled built-in?
from hyper.
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.
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.
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.
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.
@alexfedoseev Great idea! But please move your issue over to hypercwd.
from hyper.
@JonathanNathanson It's working on mine
Try updating?
from hyper.
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.
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)
- How to pass multiple shell arguments
- Command line text in neovim does not disappear
- xterm includes its own hard-coded map
- Supporting the Default Terminal Application setting in Windows
- shell issue
- Unable to get local issuer certificate
- Fails to run on Raspberry Pi OS arm64 HOT 2
- wrong hyper modification HOT 1
- Typed text does not show and screen goes black on macOS Monterey 12.7.3
- Wrong NIC in the speed of data
- The character '_' is highlighted.
- How do I add to the Services TAB of macos?
- windows 10, when use split down / right ,and close, then crash
- [bug] Ctrl+Enter sends ASCII 13 \r instead of ASCII 10 \n
- Black terminal after waking up from sleep
- Unexpected ssh connection disconnection causes Hyper.app to be unresponsive
- Change the theme of Hyper to sync with the OS HOT 1
- once i enter a commond it is not showing any other command that i gave it in past
- Help me with me=y problem HOT 1
- terminal body shows x and y scrollbar when resized HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hyper.