You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
Repository navigation
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
I think this is the right place to report this issue. If not please let me know.
As of Atom 1.0.7 Drag and Drop folders and files and were added as a feature.
While the drag drop is a nice feature, there is a subtle jankiness to current implementation. In my day to day experience, I find it far too easy to drag and drop some folder into another folder and not realize I have done so. Haplessly moving stuff around in my project.
I think part of the problem is the lack of visual indication. OS X solves this problem I believe with spring loaded folders and usually a little green plus circle to indicate you are intending to copy something.
I am surprised at how hair trigger the drag and drop is. Probably needs some careful review of the event handling and behaviors.
At least two things needed:
1.) More obvious visual indication that a move or copy is about to happen.
2.) Some way to cancel mid flight. I believe this is often handled by dragging away and release of mouse button.
Also, how do you disable this feature currently?
Thanks!
Reacted by Dani Smith, Mike Lieser, Christian Latsch, Nicolas, Kutsan Kaplan, Dylan Watt, Gabriele Tomberli, Matt Pinkston, Ahmed Hassanein, Tom and 4 more
1.) More obvious visual indication that a move or copy is about to happen.
We can indeed change the icon that is displayed while dragging. I already tried to implement copying files - but for this you'd need to get a keydown event (CMD on Mac, I believe CTRL in Windows) while dragging. And the current version of Chrome doesn't emit any keyboard events while dragging
2.) Some way to cancel mid flight. I believe this is often handled by dragging away and release of mouse button.
This works on my end. Pressing ESC also works for me.
I happen to have screwed up this morning very badly without realizing it and lost a couple weekends of code. Completely my fault- can't blame Atom, poor project layout, lack of a backup, I fail.. but dang.. still sucks lol. What happened is I have a Go project that I was rerunning Ginkgo unit tests on file system changes.. I accidentally dragged the entire sub-package I've been working on down one folder into a transient folder that was deleted and recreated each Ginkgo test run. Derp.
That said, is there no way to disable this feature all together? Just disallowing moving a "project" folder to be moved I am not sure is enough. The worst thing about this feature is it can happen so quickly while working that you have no idea what moved to where. I manage files through a shell exclusively so I can only ever move a folder by accident.
Personally, I don't understand the friction to adding a boolean atom.config option.. that would allow the user to change its value in the package Settings. Imho, features that are potentially dangerous (to users of all skill levels) should always be optional.. easy to disable.
But, given the apparent reality that the Atom team is extremely adverse to providing a toggle.. couldn't we at least give the user a hidden way to change this default value using an environment variable?
For example, here's a super simple code change that would resolve this issue:
from: @draggable = true
to: @draggable = (! process.env['atom_tree_view_disable_drag_drop'])
usage:
defaults to: true
to disable globally, append to ~/.bashrc: export atom_tree_view_disable_drag_drop='1'
to disable for a single run: (export atom_tree_view_disable_drag_drop='1'; atom)
to re-enable for a single run: (export atom_tree_view_disable_drag_drop=''; atom)
Because Atom is open source, you always have the option to fork the tree-view package and support the feature for yourself.
But, isn't this silly?
Why did such a simple thing turn into a tug-of-war between users and developers.
Power users love options..
the more we can configure the tools we use, the happier we are with them.
And finally, to set the proper tone..
I also just want to clarify that I love Atom!
It's a wonderful editor and any comments that I make are only intended as constructive suggestions to make it even better.
couldn't we at least give the user a hidden way to change this default value using an environment variable?
Having an option of any kind, whether in the atom.config or environment variable, doesn't resolve any of the issues that I listed before:
It increases the complexity of the code
It increases the support cost of the application (documenting, explaining how it works or doesn't, etc)
There are higher priority things for us to work on
Atom is built to be hackable so that the Atom maintainer team doesn't have to implement every feature that people want
But, isn't this silly?
Why did such a simple thing turn into a tug-of-war between users and developers.
No, I don't think it is silly at all. This is working exactly the way things should in open source. We don't want to maintain this feature that some people want. Those people want the feature badly enough that they decide to maintain it themselves. The only reason there is a tug-of-war here is because people are attempting to coerce the Atom maintainer team into supporting something we don't want to or believe we should have to support.
Reacted by Cody Opel, Chris Stockton and Tim Green
@lee-dohm But how does #1154 add any maintenance cost for you?
It's literally just modifying two identical lines, replacing hardcoded value true to (not process.env.atom_tree_view_disable_drag_drop) (i.e. reading a system variable which if undefined defaults to true as before because it's negated). How much extra complexity it that really?
It doesn't need to have any extra documentation. The users who want this fix are developers; who've probably modified the mentioned lines of code themselves a few times already. If Toggle drag and drop with env variable #1154 were merged, developers would find those lines and realize that they can just set a variable to disable it.
It might not be a priority to you, but the fix is minimal, and doesn't require much development at all beyond clicking merge once. (In fact, repeatedly dismissing your users valid complaints, and wontfix'ing their pull request again and again is most likely more work than accepting one pull request will cause).
Yes, it's hackable. But since the variable we want to hack is hardcoded to true we have to fork instead of just changing a setting.
On the other hand, for everyone forced to maintain their own fork, it's work every time they want to update (or they'll be stuck with an old version, as I basically am, because I can't be bothered to re-apply the patch all the time). I feel that creating forks to change one boolean is somewhat overkill.
I also love Atom, it's just this one minor annoyance we want to fix properly.
Reacted by Warren Bank, Ben Yanke, Chris Stockton and Tim Green
It's literally just replacing two identical lines with the hardcoded value true into same variable set to not + a reading a system variable which if undefined defaults to true as before. How much extra complexity it that really?
Exactly that much extra complexity.
It doesn't need to have any extra documentation.
Documentation was only one example of support cost. I've had to support multiple features both exposed by configuration and hidden (whether configurable but not shown or by environment variable), they all require effort to support, whether by documentation or some other means. The hidden ones require more support because then we have to explain to the people that don't have the time to go rifling through the code how to activate the feature.
In fact, repeatedly dismissing your users valid complaints, and wontfix'ing their pull request again and again is most likely more work than accepting a pull request causes
I agree that it is frustrating to have to repeatedly tell people no when they refuse to take no for an answer. Generally though, not listening when someone says "no" is considered bad form.
for everyone forced to maintain their own fork
(Emphasis mine.) We aren't forcing anyone to do anything. We have made a choice. You are free to make your own choice: to maintain your own fork or not. If you really want this feature, then maintaining your own fork is a viable option. If it isn't that important to you, then maybe not maintaining a fork is the right way to go. We respect your right of self-determination, especially in deciding how much your own time is worth and the best use of that time. Please respect ours.
I'm new to atom packages, but if it gets an install base, I'd happy to keep this very simple fork up to date, with a hardcoded disable of drag and drop. In any case, it's working on the current version for current use.
I'll keep an eye on the download counts in the atom package store to see if I decide to go with ongoing maintenance (which could perhaps even be scripted, since it's a search/replace for true/false).
So long as users are aware of the security risks in installing 3rd party packages.. and giving them permission to update automatically. Personally, I'm far too paranoid about security.
I found a great way to implement all the required features without adding any complexity: cat /dev/null. /s
While it's true that it technically adds complexity, it's a negligible amount...not to mention, all features "add complexity," but if they are features people need, that's the entire point of the software: to implement features.
Note, to those who followed this thread. A big update on #623:
Given that we're not going to take on significant work on the tree view any time soon, adding this checkbox, while less than ideal, feels like the right thing now.
I can't re-open this PR because the source repo is gone, but we'd accept a good PR adding this. I'll reopen #588.
Activity
winstliu commentedon Sep 9, 2015
/cc @saschagehlich
saschagehlich commentedon Sep 9, 2015
We can indeed change the icon that is displayed while dragging. I already tried to implement copying files - but for this you'd need to get a keydown event (CMD on Mac, I believe CTRL in Windows) while dragging. And the current version of Chrome doesn't emit any keyboard events while dragging
This works on my end. Pressing ESC also works for me.
danhigham commentedon Sep 29, 2015
+1 for disabling drag and drop in the tree, I have moved folders accidentally too many times to count!
billybonks commentedon Oct 15, 2015
currently the drag and drop feature, holds the icon at the top left. changing it to hold the file from the bottom right could be a good improvement.
it's also the same colour as the rest of the folders so gets lost if you aren't paying attention. we could change the colour to make it more obvious.
i don't mind adding a config to disable it or require a key down to initiate the event. as long as its not the only way, i like it as it is now.
sergiu-paraschiv commentedon Oct 19, 2015
+1 for the disable option
Zireael07 commentedon Oct 19, 2015
What do you mean it's the same color as the rest of the folders?
billybonks commentedon Oct 19, 2015
@Zireael07. i am currently dragging a file in the screenshot. :)
stgogm commentedon Oct 20, 2015
+1111 It's becoming really anoying...
theonedemon commentedon Oct 20, 2015
+1
loops-and-spells commentedon Nov 3, 2015
A function key or combination should be pressed to unlock file/folder dragging. I love the feature but hate how often i break my projects.
cstockton commentedon Jan 3, 2016
I happen to have screwed up this morning very badly without realizing it and lost a couple weekends of code. Completely my fault- can't blame Atom, poor project layout, lack of a backup, I fail.. but dang.. still sucks lol. What happened is I have a Go project that I was rerunning Ginkgo unit tests on file system changes.. I accidentally dragged the entire sub-package I've been working on down one folder into a transient folder that was deleted and recreated each Ginkgo test run. Derp.
That said, is there no way to disable this feature all together? Just disallowing moving a "project" folder to be moved I am not sure is enough. The worst thing about this feature is it can happen so quickly while working that you have no idea what moved to where. I manage files through a shell exclusively so I can only ever move a folder by accident.
30 remaining items
lee-dohm commentedon Jul 31, 2017
Because Atom is open source, you always have the option to fork the tree-view package and support the feature for yourself.
warren-bank commentedon Aug 1, 2017
Personally, I don't understand the friction to adding a boolean
atom.configoption.. that would allow the user to change its value in the packageSettings. Imho, features that are potentially dangerous (to users of all skill levels) should always be optional.. easy to disable.But, given the apparent reality that the Atom team is extremely adverse to providing a toggle.. couldn't we at least give the user a hidden way to change this default value using an environment variable?
For example, here's a super simple code change that would resolve this issue:
@draggable = trueto:
@draggable = (! process.env['atom_tree_view_disable_drag_drop'])usage:
true~/.bashrc:export atom_tree_view_disable_drag_drop='1'(export atom_tree_view_disable_drag_drop='1'; atom)(export atom_tree_view_disable_drag_drop=''; atom)to this point, it looks like everybody has..
But, isn't this silly?
Why did such a simple thing turn into a tug-of-war between users and developers.
Power users love options..
the more we can configure the tools we use, the happier we are with them.
And finally, to set the proper tone..
I also just want to clarify that I love Atom!
It's a wonderful editor and any comments that I make are only intended as constructive suggestions to make it even better.
Toggle drag and drop with env variable
lee-dohm commentedon Aug 1, 2017
Having an option of any kind, whether in the
atom.configor environment variable, doesn't resolve any of the issues that I listed before:No, I don't think it is silly at all. This is working exactly the way things should in open source. We don't want to maintain this feature that some people want. Those people want the feature badly enough that they decide to maintain it themselves. The only reason there is a tug-of-war here is because people are attempting to coerce the Atom maintainer team into supporting something we don't want to or believe we should have to support.
KenBridgeman commentedon Aug 1, 2017
strindhaug commentedon Aug 1, 2017
@lee-dohm But how does #1154 add any maintenance cost for you?
It's literally just modifying two identical lines, replacing hardcoded value
trueto(not process.env.atom_tree_view_disable_drag_drop)(i.e. reading a system variable which if undefined defaults totrueas before because it's negated). How much extra complexity it that really?It doesn't need to have any extra documentation. The users who want this fix are developers; who've probably modified the mentioned lines of code themselves a few times already. If Toggle drag and drop with env variable #1154 were merged, developers would find those lines and realize that they can just set a variable to disable it.
It might not be a priority to you, but the fix is minimal, and doesn't require much development at all beyond clicking merge once. (In fact, repeatedly dismissing your users valid complaints, and wontfix'ing their pull request again and again is most likely more work than accepting one pull request will cause).
Yes, it's hackable. But since the variable we want to hack is hardcoded to
truewe have to fork instead of just changing a setting.On the other hand, for everyone forced to maintain their own fork, it's work every time they want to update (or they'll be stuck with an old version, as I basically am, because I can't be bothered to re-apply the patch all the time). I feel that creating forks to change one boolean is somewhat overkill.
I also love Atom, it's just this one minor annoyance we want to fix properly.
lee-dohm commentedon Aug 1, 2017
Exactly that much extra complexity.
Documentation was only one example of support cost. I've had to support multiple features both exposed by configuration and hidden (whether configurable but not shown or by environment variable), they all require effort to support, whether by documentation or some other means. The hidden ones require more support because then we have to explain to the people that don't have the time to go rifling through the code how to activate the feature.
I agree that it is frustrating to have to repeatedly tell people no when they refuse to take no for an answer. Generally though, not listening when someone says "no" is considered bad form.
(Emphasis mine.) We aren't forcing anyone to do anything. We have made a choice. You are free to make your own choice: to maintain your own fork or not. If you really want this feature, then maintaining your own fork is a viable option. If it isn't that important to you, then maybe not maintaining a fork is the right way to go. We respect your right of self-determination, especially in deciding how much your own time is worth and the best use of that time. Please respect ours.
benyanke commentedon Aug 1, 2017
I'm new to atom packages, but if it gets an install base, I'd happy to keep this very simple fork up to date, with a hardcoded disable of drag and drop. In any case, it's working on the current version for current use.
I'll keep an eye on the download counts in the atom package store to see if I decide to go with ongoing maintenance (which could perhaps even be scripted, since it's a search/replace for true/false).
https://github.com/benyanke/tree-view-no-drag
https://atom.io/packages/tree-view-no-drag
Also tagging issue #996, #1154.
warren-bank commentedon Aug 1, 2017
So long as users are aware of the security risks in installing 3rd party packages.. and giving them permission to update automatically. Personally, I'm far too paranoid about security.
benyanke commentedon Aug 1, 2017
@warren-bank
You could also use something like this, and rebuild yourself.
grep -rl "@element.draggable = true" $dir | grep -v ".git" | xargs sed -i "s/@element.draggable = true/@element.draggable = false/g"warren-bank commentedon Aug 1, 2017
well.. check my repo that I linked to earlier.. it does something similar.. but on steroids++
warren-bank commentedon Aug 1, 2017
my point is.. I assume that security concerns are the reason that everybody here is maintaining their own individual fork
..and it would be really nice if the core repo were modified ever-so-slightly.. in such a way that it's no-longer necessary for us to do so
benyanke commentedon Aug 1, 2017
Fully agree, @warren-bank
I found a great way to implement all the required features without adding any complexity:
cat /dev/null. /sWhile it's true that it technically adds complexity, it's a negligible amount...not to mention, all features "add complexity," but if they are features people need, that's the entire point of the software: to implement features.
benyanke commentedon Sep 20, 2017
Note, to those who followed this thread. A big update on #623:
source