afrog icon indicating copy to clipboard operation
afrog copied to clipboard

Copy Path from bottom Status Bar

Open davidbarratt opened this issue 12 years ago • 17 comments

Hello!

There is a nice file path at the bottom left of every window, however, that file path cannot be copied to the clipboard. Why is this?

Thanks!

davidbarratt avatar Jul 14 '14 21:07 davidbarratt

I suppose it's usually fine to use the context menu options: image

batjko avatar Jul 14 '14 21:07 batjko

ooo! dur da dur. I guess I wasn't expecting to have to use the tree view for the context menu to work.

screen shot 2014-07-14 at 5 25 57 pm

I suppose it would be nice to be able to use the context menu in the bottom as well? or perhaps just make the text selectable?

Thanks!

davidbarratt avatar Jul 14 '14 21:07 davidbarratt

Fair enough. Although that section is a status bar, and as such purely informational, as one would normally expect.

I could imagine this to be a useful package though, to add a dedicated context menu to the status bar.

batjko avatar Jul 14 '14 21:07 batjko

@batjko, yeah that would be nice, at a minimum though, I don't see why the text should be selectable and be allowed to use Command+C to copy it.

davidbarratt avatar Jul 14 '14 21:07 davidbarratt

@davidbarratt Could you please re-open this on the Status Bar's repository?

https://github.com/atom/status-bar/issues

Thanks!

izuzak avatar Jul 14 '14 22:07 izuzak

Just to add this here as well: Since v1.0.1, clicking this path now copies the absolute path to clipboard.

batjko avatar Jul 09 '15 00:07 batjko

@batjko,

this is a weird behavior, it should copy what you see (i.e. the relative path). Or maybe this could be a config option?

davidbarratt avatar Jul 09 '15 12:07 davidbarratt

@davidbarratt Removing part of the absolute path by hand is easier than making the absolute path from what is displayed. Adding an option for that is possible, but If you need once relative and second time absolute then going to settings to switch between modes will be more annoying that making relative path from absolute by selecting and deleting IMHO.

In the original issue you were fine if it copied absolute path, but informed user about it in the tooltip which is done :+1: :innocent:.

kubetz avatar Jul 09 '15 13:07 kubetz

I suppose, we could think about adding a setting onto the status-bar package, that toggles between absolute and "as-is" relative path...

batjko avatar Jul 09 '15 15:07 batjko

@batjko That makes sense if you don't expect people to switch between those 2 options (semi-)often. I am really not sure if it is worth it as there are more steps needed to change that setting than to just select and remove characters from copied string :sweat_smile:. For me it is :-1: .

kubetz avatar Jul 09 '15 15:07 kubetz

Alternatively, maybe it could copy the relative path when holding a modifier key (Alt or Shift or something)

mnquintana avatar Jul 09 '15 15:07 mnquintana

Personally, I prefer the absolute path as well. It's certainly the most flexible way to use this feature and switching back and forth between both might be too much of a usability hassle.

batjko avatar Jul 09 '15 15:07 batjko

I like the modifier approach proposed by @mnquintana. It sounds better than settings, context menu or some new element directly on the status bar.

kubetz avatar Jul 09 '15 16:07 kubetz

Agreed, least effort approach. Should be an easy PR ;)

On Thu, Jul 9, 2015, 17:03 kubetz [email protected] wrote:

I like the modifier approach proposed by @mnquintana https://github.com/mnquintana. It sounds better than settings, context menu or some new element directly on the status bar.

— Reply to this email directly or view it on GitHub https://github.com/atom/atom/issues/2973#issuecomment-120049561.

batjko avatar Jul 09 '15 17:07 batjko

Any update here?

I'd be interested in submitting a PR, but have no idea where to start; could someone point me in the right direction?

Answering my own question: https://github.com/atom/status-bar/blob/master/lib/file-info-view.coffee#L16

... and, it turns out this was added in a recent version: https://github.com/atom/status-bar/pull/118

rattrayalex avatar Apr 29 '16 17:04 rattrayalex

hold down shift and click to copy relative path.

congwenma avatar Jun 14 '16 15:06 congwenma

This issue has been automatically locked since there has not been any recent activity after it was closed. If you can still reproduce this issue in Safe Mode then please open a new issue and fill out the entire issue template to ensure that we have enough information to address your issue. Thanks!

lock[bot] avatar Apr 07 '18 02:04 lock[bot]