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

Overly generic css selector on menu #1032

Closed
1 task done
sunz7 opened this issue Jul 16, 2018 · 6 comments
Closed
1 task done

Overly generic css selector on menu #1032

sunz7 opened this issue Jul 16, 2018 · 6 comments
Assignees

Comments

@sunz7
Copy link

sunz7 commented Jul 16, 2018

Edit by @rsese to use the issue template

Prerequisites

Description

'.list-item': [
{ 'label': 'Copy Path', 'command': 'find-and-replace:copy-path' }
]

A recent change made this selector more generic which causes an unintended menu item to be added.
We use .list-item in things like "File Tree". This overly generic css selector add "Copy Path" command to file tree's Context Menu. When user clicks on it, expecting it to copy the file path on for a folder or file, instead it does not. Please consider add more specificity to the selector.
Thanks!

Steps to Reproduce

Using atom/atom:

  1. atom --safe .
  2. Right click on a tree view item

Expected behavior: [What you expect to happen]

No Copy Path item.

Actual behavior: [What actually happens]

A Copy Path item.

copy-path

Reproduces how often: [What percentage of the time does it reproduce?]

100%

Versions

atom -v
Atom    : 1.30.0-dev-8209eaa63
Electron: 2.0.4
Chrome  : 61.0.3163.100
Node    : 8.9.3

macOS 10.12.6

@50Wliu 50Wliu added the bug label Jul 16, 2018
@rsese
Copy link

rsese commented Jul 16, 2018

Thanks for the report! I can reproduce with 1.30.0-dev-8209eaa63 on macOS 10.12.6. I went ahead and updated the issue body to use our issue template, if you could use the issue template for future issues, that would be super helpful.

@50Wliu 50Wliu added the triaged label Jul 16, 2018
@sunz7
Copy link
Author

sunz7 commented Jul 16, 2018

@rsese oh sorry about that. I will use the template next time! Thank you!

@captbaritone
Copy link

When should we expect a version with this fix to get published? (Trying to decide if we should implement a work around)

@jasonrudolph
Copy link
Contributor

@captbaritone: This fix will likely be available in Atom Beta within the next week.

I'm under this impression that this bug is mostly an annoyance. If it's more than and annoyance, and this bug is having a significant negative impact on your use of Atom, please let us know. 🙇

@captbaritone
Copy link

This selector exists in the File Tree package in Nuclide. Nuclide users are seeing a broken "Copy Path" context menu item when right-clicking in the Nuclide file tree.

@jasonrudolph
Copy link
Contributor

This selector exists in the File Tree package in Nuclide. Nuclide users are seeing a broken "Copy Path" context menu item when right-clicking in the Nuclide file tree.

@captbaritone: Thanks for sharing that context. That is indeed more than an annoyance. 🙈

I've cherry-picked this fix onto the 1.29-releases branch (atom/atom@e1d336f), and it will be included in the Atom 1.29 stable release, which will likely ship this week.

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

No branches or pull requests

5 participants