Copy Path from bottom Status Bar
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!
I suppose it's usually fine to use the context menu options:

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

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!
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, 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 Could you please re-open this on the Status Bar's repository?
https://github.com/atom/status-bar/issues
Thanks!
Just to add this here as well: Since v1.0.1, clicking this path now copies the absolute path to clipboard.
@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 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:.
I suppose, we could think about adding a setting onto the status-bar package, that toggles between absolute and "as-is" relative path...
@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: .
Alternatively, maybe it could copy the relative path when holding a modifier key (Alt or Shift or something)
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.
I like the modifier approach proposed by @mnquintana. It sounds better than settings, context menu or some new element directly on the status bar.
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.
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
hold down shift and click to copy relative path.
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!