Giter Site home page Giter Site logo

Comments (1)

paolosimone avatar paolosimone commented on June 20, 2024

Hi @originalrusyn, thanks again for choosing this plugin and for your feedback!

Unfortunately it's not possible to implement exactly your proposal because:

  • in general the text is read-only so there isn't a cursor to move around like in IDEs
  • in Tree mode in particular the text is dynamically fragmented across several html components (that's what makes it fast and easy to navigate)

But I agree that it would be nice to have a shortcut to quickly select a value such as a UUID in Tree mode, so in #37 I introduced:

  • shift + left arrow: select node key
  • shift + right arrow: select node value
  • command + a: select whole line
    • this one is a bit buggy in chrome because it will add an extra newline when pasting to another editor

Again, expanding selection across multiple lines would not work as intended due to the complex DOM structure.

Hope you'll find it useful!


As an extra suggestion, in case you need to copy-paste several UUIDs you could leverage the JQ filtering and the Raw view.

Example: to copy all ids from a list of json objects

[{"id": 1, "field": "value_1"}, {"id": 2, "field": "value_2"}]
  1. command + shift + f: goto JQ filter
  2. insert map(.id) and hit enter
  3. command + i: switch to raw view
  4. command + 0: focus text area
  5. command + a: copy text

from virtual-json-viewer.

Related Issues (16)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.