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

[Feature] Copy result #16

Closed
shpoont opened this issue Jan 11, 2022 · 7 comments
Closed

[Feature] Copy result #16

shpoont opened this issue Jan 11, 2022 · 7 comments
Labels
enhancement New feature or request

Comments

@shpoont
Copy link

shpoont commented Jan 11, 2022

Hi,

It would be great to be able to copy the result of calculation from a single line, it is currently a cumbersome process to get the value - we need to select the expression, copy with output to the clipboard, then copy to a different line, and then copy the result.

@nortakales
Copy link
Owner

Would your ideal solution be an action (with a keybinding) that copies only the result of the current line to the clipboard?

@nortakales nortakales added the enhancement New feature or request label Feb 17, 2022
@shpoont
Copy link
Author

shpoont commented Feb 17, 2022

I think the best solution would be if I could simply select and copy the result as with any other text.

@nwehrle
Copy link

nwehrle commented Jun 14, 2022

All my development needs are satisfied with vscode and the right set of extensions. The only reason I prefer numi over qalc is the simple copy-to-clipboard mechanism.
It does not have to be oneclick. But a simple select/copy would make your extension so much better. Can I bribe you with a coffee/beer?

@nortakales
Copy link
Owner

Due to how the results are displayed, I can't make them selectable (or, maybe I could, but through a pretty big refactor/rewrite of the entire extension). What I can do is look into including the results with the copied text as if it were selected. It could be controlled with a setting probably. I'm not yet sure if this is even feasible though. I'll have to see if VSCode has an extension API to access copy/paste. Would this be enough?

@nwehrle
Copy link

nwehrle commented Jun 15, 2022

Hi and thank you for your anwer. How about a 2nd best or 3rd best option that may be easier to implement?
2nd: a command that copies only the result from the selected line (you seem to concatenate the copied line with the result in the code, maybe just omitting the line and the separator will do the trick)
3rd: typing "last" also copies the result to the clipboard

@nortakales
Copy link
Owner

A command to copy just the output to the clipboard will be in v0.1.11

@nortakales
Copy link
Owner

3303711

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

No branches or pull requests

3 participants