-
Notifications
You must be signed in to change notification settings - Fork 5
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
Console message for construct_clip()
?
#486
Comments
This sounds good to me thanks! I'm happy to review a PR |
Nice, thanks! Just putting one together now. I noticed that {prettycode} is required for syntax highlighting, but I think this can be removed in favour of |
Interesting, it seems to do the same except that cli adds hyperlinks to help files with hover on info. |
Nice one, will do 👍 |
How would you feel about the idea of adding some console messages to
construct_clip()
? Currently there's nothing to signal to a user that anything about the global state has changed, which to me feels like a bit of a sharp edge.I'd suggest displaying the complete text of the copied code, e.g:
A more terse message might be something like
ℹ Added 4 lines to the clipboard
, but I think showing the full code is better.Here's why I think more messaging would be useful:
Since
construct_clip()
modifies the global state, it seems polite to notify the user. There's an interesting section about this in the WIP tidy design principles.Sometimes I iterate through calls to
construct()
/construct_clip()
a bit before I arrive at something I want to use. Iterating usingconstruct_clip()
is currently not much fun because you need to paste the results to see what they are, so IMO this would be a nice convenience feature.Happy to make a PR if you like this idea.
I'm really enjoying this package! Thanks for creating/maintaining it 😃
The text was updated successfully, but these errors were encountered: