Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Toggle drag and drop with env variable - #1154

Closed
strindhaug wants to merge 1 commit into
atom:masterfrom
strindhaug:minimal-toggleable-drag-and-drop-using-env
Closed

strindhaug wants to merge 1 commit into
atom:masterfrom
strindhaug:minimal-toggleable-drag-and-drop-using-env

Conversation

@strindhaug

Copy link
Copy Markdown

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

  • Makes users who do not want drag and drop, able to disable this without having to maintain their own fork.
  • This fix does not add any visible settings; thus no clutter.
  • It only changes two hardcoded true's into (not process.env.atom_tree_view_disable_drag_drop) which also defaults to true; thus not adding measurably to cost of maintenance.

Possible Drawbacks

None unless the user sets the atom_tree_view_disable_drag_drop variable.

Applicable Issues

Some related issues: #566 #996 #919

Minimal fix for atom#566 only using environment variable.
As suggested by @warren-bank in
atom#566 (comment)
@lee-dohm

lee-dohm commented Aug 1, 2017

Copy link
Copy Markdown
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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants