Bug 162060 - Add items to watch window from r-click
Summary: Add items to watch window from r-click
Status: RESOLVED WONTFIX
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: BASIC (show other bugs)
Version:
(earliest affected)
7.6.4.1 release
Hardware: x86-64 (AMD64) Windows (All)
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: needsUXEval
Depends on:
Blocks: BASIC-IDE
  Show dependency treegraph
 
Reported: 2024-07-16 16:34 UTC by Vas
Modified: 2024-07-25 08:16 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vas 2024-07-16 16:34:26 UTC
Description:
I think it would be a nice little time saver to be able to right click on a selected object or variable in the code window and offer to add it to the Watch window. Currently you need to highlight it, copy it, paste it in the Watch window, press enter.

Steps to Reproduce:
1. highlight item
2. copy item
3. go to watch window
4. paste it in the window
5. enter

Actual Results:
N/A

Expected Results:
Right click on the item in thew code window, select "Add to Watch" and item appears in the watch window


Reproducible: Always


User Profile Reset: No

Additional Info:
Version: 7.6.4.1 (X86_64) / LibreOffice Community
Build ID: e19e193f88cd6c0525a17fb7a176ed8e6a3e2aa1
CPU threads: 8; OS: Windows 10.0 Build 19045; UI render: Skia/Vulkan; VCL: win
Locale: en-GB (en_GB); UI: en-GB
Calc: CL threaded
Comment 1 Rafael Lima 2024-07-16 19:55:54 UTC
+1 from my side... seems very helpful
Comment 2 nobu 2024-07-16 21:06:48 UTC
Try [F7].
Add menu [.uno:AddWatch].
Comment 3 Regina Henschel 2024-07-16 23:28:44 UTC
Or set cursor in the object name and click on the spectacles-icon.
Comment 4 Heiko Tietze 2024-07-17 08:41:32 UTC
Toolbar and shortcut, that should do the trick very well. => WF

But also no objection to add the command to the context menu.
Comment 5 Vas 2024-07-17 08:54:17 UTC
@nobu I did not know about the F7 key, that does indeed add the item under the cursor to the Watch window, thanks.

When looking at that menu item "Run" -> "Enable Watch F7", it does not really tell you you're going to add this to the Watch window, I assumed it meant, open the Watch window as per the toolbar button.

I still think adding this to the context menu is a good thing to do and also, now that I have seen it, the menu text could be changed to state something like "Add to Watch", so it explicitly states what it is doing.
Comment 6 Vas 2024-07-17 08:56:38 UTC
Can you reopen this again and reconsider please. 

If your hand is already on the mouse, adding it to the context menu means you don't need to lift your hand off the mouse to press a key.