This repository was archived by the owner on Dec 15, 2022. It is now read-only.
Repository navigation
Toggle drag and drop with env variable - #1154
Closed
strindhaug wants to merge 1 commit into
Closed
strindhaug wants to merge 1 commit into
strindhaug wants to merge 1 commit into
Conversation
Minimal fix for atom#566 only using environment variable. As suggested by @warren-bank in atom#566 (comment)
Contributor
|
As I mentioned in my response in the issue, this isn't something that the Atom team is going to accept. Thank you for your effort and your interest in Atom. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Minimal fix for #566 only using environment variable.
As suggested by @warren-bank in #566 (comment)
Description of the Change
Does the minimum needed change to make drag and drop disableable by optionally setting the environment variable
atom_tree_view_disable_drag_drop.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)Alternate Designs
There have been other suggested fixes such as #623 and #748 that were closed as wontfix because it added configuration.
Benefits
true's into(not process.env.atom_tree_view_disable_drag_drop)which also defaults totrue; thus not adding measurably to cost of maintenance.Possible Drawbacks
None unless the user sets the
atom_tree_view_disable_drag_dropvariable.Applicable Issues
Some related issues: #566 #996 #919