hyper icon indicating copy to clipboard operation
hyper copied to clipboard

Drag & Drop folder to app icon should open the bash in folder

Open crispossa opened this issue 10 years ago • 27 comments

In Terminal.app, when I drag & drop some folder to the app icon, it make cd [folder dropped] for me and it's very useful.

Such feature not work in HyperTerm.

Any plans to add this? #

crispossa avatar Jul 19 '16 15:07 crispossa

My god, this feature is so cool. We definitely need it in HyperTerm! 🎉 Might be a great idea to built it as a plugin and add it to the default configuration.

leo avatar Jul 19 '16 15:07 leo

I agree with @leo would be a cool feature, will have a go at this.. shouldn't be too hard right :wink:

timneutkens avatar Jul 19 '16 16:07 timneutkens

I agree with @crispossa. This is such an ingrained part of my workflow that I had to switch back to iTerm 2. I really hope this gets added so I can give Hyperterm another spin!

startupfoundry avatar Jul 19 '16 19:07 startupfoundry

Unfortunately, I don't think this can be achieved with just a plugin, since this feature touches in the OS X API (Open With...). But, I can be wrong....

Cheers.

crispossa avatar Jul 19 '16 19:07 crispossa

It is possible with electron (try vscode or atom, they both support it) just got to figure out how to enable dropping on the icon in electron. From what I can see here it might have to be in the core of hyperterm because of this: https://discuss.atom.io/t/how-to-handle-file-when-dragged-on-to-application-icon/12799/5

timneutkens avatar Jul 19 '16 20:07 timneutkens

Also as a side note, it's also not possible to drop a file into the current tab. iTerm will automatically insert the file path at the cursor when you do that.

timneutkens avatar Jul 19 '16 20:07 timneutkens

+1

I use this all the time in Terminal.

jrdnbwmn avatar Jul 20 '16 14:07 jrdnbwmn

There are some pull request regarding this issue:

  • #307 Enables file drop to dock icon
  • #276 Handle the path passed by the dropped file and "cd" to the directory (or execute it if it's a file)

lordgiotto avatar Jul 20 '16 15:07 lordgiotto

@lordgiotto Is this issue still valid?

timothyis avatar Jul 26 '16 21:07 timothyis

@CodeTheory #307 was merged, so is possible to drop files on the dock icon. #329 Is not merged yet, so for now dropping a file on a dock icon does nothing.

So this issue is not fixed yet :)

lordgiotto avatar Jul 27 '16 07:07 lordgiotto

+1, loving Hyperterm just don't like typing paths to open a folder.

Ravenna avatar Jul 29 '16 12:07 Ravenna

Can be closed due #329 and #307 was merged :)

lordgiotto avatar Aug 06 '16 09:08 lordgiotto

Great job! Redownloading app!

crispossa avatar Aug 08 '16 12:08 crispossa

@crispossa You have to clone current master, the packaged version is not still updated to that feature: you have to wait the next release for this :)

lordgiotto avatar Aug 08 '16 12:08 lordgiotto

I know. Thx.

crispossa avatar Aug 08 '16 12:08 crispossa

Hi @lordgiotto,

I've installed the latest canary version (2.0.2) but I can't drag and drop yet. I'm running Mac OS Sierra. Do you have any suggestion?

Thanks!

marcotollini avatar Sep 22 '17 19:09 marcotollini

@lordgiotto I have the same problem. I have version 1.4.8 and Mac OS Sierra but can't drag and drop.

ghost avatar Jan 24 '18 08:01 ghost

@lordgiotto same here, I'm running 1.4.8 on Sierra and dropping a folder (from finder, or any other source) on the dock icon does nothing.

wolfgangrittner avatar Feb 12 '18 10:02 wolfgangrittner

Looks like we have a regression here, @chabou could this have been accidentally removed in 2.x? 🤔

albinekb avatar Feb 12 '18 12:02 albinekb

We have some feedbacks from 1.4.8 too. We maybe have some old regression but not related to 2.X imo

chabou avatar Feb 12 '18 16:02 chabou