-
-
Notifications
You must be signed in to change notification settings - Fork 335
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
Add Copy With Headers to grid cell popup. #1208
Conversation
f68e151
to
4e6aac7
Compare
Those Formulas tests pass for me locally:
|
This is what you want when you're going to paste into e.g. an email. Tested just by manually trying copy and paste into an editor and an email, and then again using the new variant to confirm the headers show up.
4e6aac7
to
52fb0f0
Compare
This only tests the plain text copy, not the HTML copy functionality.
0c40372
to
194cf7c
Compare
Deployed commit |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Neat functionality, thanks @rtwfroody ! I think we'd like to have this, thanks for working on it. This isn't a code review yet. Here are two points that came up in some testing:
- Capitalization in menu is inconsistent, "Copy with headers" would be better.
- Shortcut isn't too conflicty, but in Chrome and Firefox that shortcut opens the dev console (there are other ways though), and in Excel it copies formatting, no values. Is there another shortcut that still appeals to you but has less conflict?
I noticed this too. The code already does that, but the screenshot up top is out of date. Should I update the screenshot?
I'm pretty much open to anything, and don't know anything about shortcuts that work well with browsers. Is Ctrl + Alt + C available? |
I see that now. Code is enough, thanks!
Looking through shortcut databases, that isn't obviously better. Your original choice may be good enough. Given that you are open to changing it if needed, we'll go ahead and get a code review on this asap, thanks for the contribution! ❤️ |
It conflicts with some browser built-ins. We can always add it back in later.
239ca72
to
ebe5c24
Compare
No current code was taking advantage of the argument.
Deployed commit |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @rtwfroody.
Thank you! I look forward to seeing this live on getgrist.com. :-) |
There's some chance it will be there from Monday (2024/10/7) on, otherwise a week from then. Thanks @rtwfroody ! |
Context
Add Copy With Headers to grid cell popup. This is what you want when you're going to paste into e.g. an email.
User story: I want to copy and paste from a grist table into email. The table contents don't make much sense without the headers, so I need them in the email as well.
Proposed solution
Add new entry to the grid cell popup.
Related issues
None
Has this been tested?
I wrote a new test: CopyWithHeaders. This makes sure headers are copied when pasting plain text.
Tested by manually trying copy and paste into an editor and an email, and then again using the new variant to confirm the headers show up.
Screenshots / Screencasts