Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[work-in-progress] Added writing query and content to clipboard #46

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

anton-suprun
Copy link

@anton-suprun anton-suprun commented Jun 8, 2024

Description

  • Addresses issue: Feature Request: Copy current JSON displayed #27

  • Added two methods to Jnv

    • content_to_clipboard - writes currently visible json to clipboard and adds a hint that content was copied to clipboard
    • query_to_clipboard - writes current jq query to clipboard and adds a hint that the query was copied to clipboard
  • Added two new shortcuts:

    • ctrl-o - copies content to clipboard
    • ctrl-q - copies query to clipboard

Screencasting

Note: I have a clipboard manager (via Raycast); that's the pop-up you're seeing; I use it to show the latest copied text

Screen.Recording.2024-07-24.at.11.18.54.PM.mov

Notes

Please feel free to request any changes to code structure, shortcuts, etc. I am happy to receive any of your feedback on this 😊
Dependency promkit PR

jaq-core = "1.2.1"
jaq-interpret = "1.2.1"
jaq-parse = "1.0.2"
jaq-std = "1.2.1"
promkit = "0.4.3"
promkit = { path = "/Users/antonsuprun/Projects/promkit/promkit" }
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

note: will remove this once it's ready to merge

@anton-suprun
Copy link
Author

@ynqa

Thanks again for your suggestion on the promkit change; let me know if you have any other suggestions :)

(Once again; apologies for the delay on this 🙏 )

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

Successfully merging this pull request may close these issues.

None yet

1 participant