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

Add 'Select link' as a right click context menu item when editing #14114

Open
mkupper opened this issue Sep 7, 2023 · 2 comments
Open

Add 'Select link' as a right click context menu item when editing #14114

mkupper opened this issue Sep 7, 2023 · 2 comments

Comments

@mkupper
Copy link

mkupper commented Sep 7, 2023

Description of the Issue

For the background to this request see https://community.notepad-plus-plus.org/topic/24893/click-link-and-paste-new-link
At present when an underlined link is right-clicked Notepad++ replaces "Copy" with "Copy link" as part of the context menu that is displayed.
The feature request is that the right click menu offer both "Copy link" and "Select link."
The goal is that the person editing can then delete, copy, or paste the selected link.

Steps to Reproduce the Issue

  1. When editing right click an underlined link. The context menu displays "Copy link" (IDM_EDIT_COPY_LINK) in place of "Copy" (IDM_EDIT_COPY) when no text is selected.
  2. The feature request is to also offer "Select link" (presumably IDM_EDIT_SELECT_LINK) below the "Copy link" context menu item.

Expected Behavior

The Notepad_plus::command() code for IDM_EDIT_SELECT_LINK would set the selection to span the link.

@mkupper
Copy link
Author

mkupper commented Sep 8, 2023

The OP on https://community.notepad-plus-plus.org/topic/24893/click-link-and-paste-new-link is asking for "Paste over link" as a right click option. That makes sense to me and may well clean up the coding logic that's involved with this feature request. I don't know though if you would like to see a pro/con discussion on the forums of what should happen when someone right clicks on a link. At present the only thing that happens is that the formerly grayed out "Copy" gets replaced with an active "Copy link." Do we want in this instance to add several new options or perhaps to add a "Link" sub-menu selector and under that to offer Copy link, Paste link, Delete link, and Select link? Or, simply only offer Select link and from there the person can use the normal copy/paste/delete of the selected area.

@alankilborn
Copy link
Contributor

alankilborn commented Sep 15, 2023

For those that might be interested: I wrote a PythonScript solution to this problem on the Community site: https://community.notepad-plus-plus.org/post/89257

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

No branches or pull requests

2 participants