History log of /expo/docs/ui/components/CommandMenu/Items/CommandItemBase.tsx (Results 1 – 1 of 1)
Revision Date Author Comments
# cf059199 21-Aug-2023 Keith Kurak <[email protected]>

[docs] Concept: secret quick-copy for links from search results (#23948)

# Why
I copy links from the docs dozens of times a day for support responses,
Discord, etc., and I'm sure I'm not the only

[docs] Concept: secret quick-copy for links from search results (#23948)

# Why
I copy links from the docs dozens of times a day for support responses,
Discord, etc., and I'm sure I'm not the only one. I typically memorize
what search results give me what links. I don't need to watch the search
result page load, except so that I can copy that link. So, I was
wondering... what if I didn't have to? What if I could get the link
without ever leaving the search results?

I'm not very confident this is right way to do it, so I wanted to ask
(in the form of the PR), does anybody else want this? And what would be
the right way to do it?

# How
I've been using Linux a lot lately, which is big on
copying-via-middle-click. Unfortunately, macOS doesn't have
middle-click, so, it would have to be right-click, so all I did was
suppress the context menu when right-clicking on a search result.

If it worked like this, IMO it'd be better with some actual feedback,
like a toast. Or it could be something like this copy feedback:

![image](https://github.com/expo/expo/assets/8053974/12066a45-eabb-4f67-a1d4-a2751bc42700)
(just didn't want to go too far without feedback on the concept itself)

Is there another sort of secret shortcut that could work? Like a
keypress + click?

# Test Plan

<!--
Please describe how you tested this change and how a reviewer could
reproduce your test, especially if this PR does not include automated
tests! If possible, please also provide terminal output and/or
screenshots demonstrating your test/reproduction.
-->

# Checklist

<!--
Please check the appropriate items below if they apply to your diff.
This is required for changes to Expo modules.
-->

- [ ] Documentation is up to date to reflect these changes (eg:
https://docs.expo.dev and README.md).
- [ ] Conforms with the [Documentation Writing Style
Guide](https://github.com/expo/expo/blob/main/guides/Expo%20Documentation%20Writing%20Style%20Guide.md)
- [ ] This diff will work correctly for `npx expo prebuild` & EAS Build
(eg: updated a module plugin).

---------

Co-authored-by: Simek <[email protected]>

show more ...