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

Please add keyboard shortcut to copy result. Copy full line behaviour for the expressions is another wish. #22

Closed
LarsJandel opened this issue Jun 13, 2020 · 9 comments
Labels
added - pending release The feature was added and it will be available in the next release enhancement New feature or request

Comments

@LarsJandel
Copy link

It would be fantastic if I could copy the result of an expression to the clipboard via a keyboard shortcut. Listary has this as an example:
Listary-copy_result

While talking about copying to the clipboard:
I really like Visual Studio Code's behaviour to copy the full line when having no character selected. This would be cool for the expression side of Parsify as well I think. 😉

Thanks

@LarsJandel
Copy link
Author

...and Visual Studio Code's Ctrl+X behaviour to cut the full line when no characters are selected. 😎
Thanks!

@xxczaki xxczaki added the enhancement New feature or request label Jun 13, 2020
@xxczaki
Copy link
Member

xxczaki commented Jun 13, 2020

Great idea, I will try to work on it.

@xxczaki
Copy link
Member

xxczaki commented Nov 22, 2020

The 1.4.0 (which should be available within a few hours) will include the ability to copy the result and paste it into the last line using buttons next to the result. I'm hoping to make this feature configurable in the next release, so that you will be able to customize the behavior (for example copy the full line) 😄

Preview: https://twitter.com/parsifyapp/status/1325936657246326784

@LarsJandel
Copy link
Author

Thanks for adding this!
In addition to the buttons, I still would like an option to quickly copy the result via a keyboard shortcut, avoiding the need to use the mouse. 😉
Thanks!

@xxczaki
Copy link
Member

xxczaki commented Dec 24, 2020

@LarsJandel The system was changed a bit in the recent 1.5.0 release (added option to copy the full line via a double-click), but it still does not support keyboard shortcuts. What shortcut would you like to use in order to copy results?

I was thinking about Ctrl/Cmd + <number> for example Cmd + 3 to copy the result from line 3. However, I don't think this would work for anything over line 9.

@LarsJandel
Copy link
Author

Nice idea using the line numbers, but I think, it doesn't have to be that complicated, plus regarading the limit and using separator lines / comments, it wouldn't be handy that way as you mentioned yourself.
It should be sufficient, if the user could copy the result of the formula where the cursor is currently positioned. This should be the most common use case.
Hm, regarding the short cut. Thinking about it, Listary didn't go for Ctrl/Cmd+C as this is still in use to copy highlighted text, so using 1 being close to the modifier key, works well. ...it also translates to copy one (result) 😉. So, you could do just the same:
Ctrl/Cmd+1 to copy the result of line of the current cursor location.

Thanks!

@xxczaki
Copy link
Member

xxczaki commented Feb 14, 2021

@LarsJandel Sorry for the delay, and thanks for further details. For your information, the discussed feature (keyboard shortcuts for copying lines, copy full line) will be available in the next release, which should be released at the end of February 😄

@xxczaki
Copy link
Member

xxczaki commented Feb 14, 2021

Implemented!

  • Ctrl/Cmd + C copies full line if no selection
  • Ctrl/Cmd + X removed line if no selection
  • Ctrl/Cmd + 1 copies the result of a line

^ This will be added to the "Shortcuts help" modal (bottom-left corner of the app).

@LarsJandel
Copy link
Author

Fantastic - thanks! 🎉

@xxczaki xxczaki added the added - pending release The feature was added and it will be available in the next release label Feb 15, 2021
@xxczaki xxczaki closed this as completed Mar 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
added - pending release The feature was added and it will be available in the next release enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants