sunjw / jstoolnpp

A JavaScript (JSON) tool for Notepad++ (formerly JSMinNpp) and Visual Studio Code.
GNU General Public License v2.0
283 stars 24 forks source link

Feature Request: Right Click on Tree View to Copy Key or Value Data #88

Open alphazwest opened 4 years ago

alphazwest commented 4 years ago

Call me crazy—I swear this functionality used to be present.

When in the tree viewer mode, I often find it pertinent to extract the data from either a key or a value entry. Having a simple context menu prompted from a right-click action would be very useful.

Suggested options:

  1. Copy Key
  2. Copy Value
  3. Copy Key: Value Pair
sunjw commented 4 years ago

Yes, it has a context menu for what you want. 图片

alphazwest commented 4 years ago

Ahhhh! I knew I remembered that working at some point!

Any idea why that context menu wouldn't be appearing? No menu appears when I right-click in the JSON viewer pane

sunjw commented 4 years ago

83 found some one has the same issue.

FireEmerald commented 4 years ago

@sunjw A simple right click on a item in the tree does not open any context menu. Is there something special to get the context menu to show or is it a bug? It seems like a bug... sample

It would be also cool if a double click on a item inside the tree view would select the corresponding row in the text view.

sunjw commented 4 years ago

@FireEmerald cannot reproduce on my computer, I'll leave this open.

FireEmerald commented 4 years ago

It seems like the issue only happens sometimes. I re-tested it on the same machine and now the context menu does appear as well as the mentioned auto-selection from my last comment works. I was also unable to break it again.

``` Notepad++ v7.9 (64-bit) Build time : Sep 22 2020 - 03:19:04 Path : C:\Program Files\Notepad++\notepad++.exe Admin mode : OFF Local Conf mode : OFF OS Name : Windows 10 Enterprise (64-bit) OS Version : 1909 OS Build : 18363.1082 Current ANSI codepage : 1252 Plugins : ComparePlugin.dll JSMinNPP.dll mimeTools.dll NppConverter.dll NppExport.dll XMLTools.dll ```
sunjw commented 4 years ago

Maybe bug in NPP.