-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
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
Desktop: Add external editor actions to the note context menu. #2214
Desktop: Add external editor actions to the note context menu. #2214
Conversation
Also start up external editor on note double click. These changes enhance user experience by placing the actions where they feel natural.
The proposed changes are to add external editor actions to the note context menu. In my experience, this is a place where the user might naturally expect to find them. When right-click on a note in the note list, "Edit in external editor" is a new option. If the note is in the watching state already, then the new option is "Stop watching external editor". If two or more notes are selected, then the option is unavailable. In addition, double-click on the note in the note list launches the external editor. If the note is in the watching state, then double click does nothing. I could not find tests relevant to this part of the application. Please advise if there are test cases to be updated. |
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.
I like the change, but I can't recall this being discussed in the forum.
Let's see what Laurent says.
Looks good but I prefer we reserve the use of double-click for now, as not everyone has an external editor configured. I'd expect double-clicking opens the note in a new window, not necessarily in an external editor. |
Changes in response to review comments.
Agreed. Will remove the double-click. |
While testing this, I found a pre-existing bug in the context menu; when you right-click on a note in the list, the context menu is shown for the note under the mouse, but the action is applied to the currently selected note. Perhaps right-clicking a note in the list should also select it if it isn't already selected? This probably needs discussion, should I create a separate issue for that? Edit: I tried on an older version, and it behaves differently. I'll look into it further. |
This is to ensure correct behaviour even when the user launches the action on a note in the list that is under the pointer, but not selected.
There was a bug (as described above) and I have fixed it for this feature in the last commit. To fix it, I moved the launching of the external editor to the main screen object, because the current note may not be the one that is being acted upon. The same bug exists for the pdf export and maybe other actions in the context menu, I haven't checked them all. I propose to create an issue to fix those separately. |
I am not sure if this was necessary. e.g. But |
Yes, that is correct. Though perhaps the main difference is that I can implement the fix in |
For reference, I used the |
I have reverted the changes made in |
Please see #2255 prior to this. If it is acceptable, then I would like to update this before review, to use the same method. |
Looks good, thanks @mic704b! |
Thank you! |
Also start up external editor on note double click.These changes enhance user experience by placing the actions where they feel natural.