Bug 95788 - Add ClearRecentDocuments to Keyboard Configuration Dialog
Summary: Add ClearRecentDocuments to Keyboard Configuration Dialog
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: Other All
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: needsDevEval
Depends on:
Blocks: UNO-Command-New
  Show dependency treegraph
 
Reported: 2015-11-13 03:24 UTC by tommy27
Modified: 2020-09-28 23:57 UTC (History)
4 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 tommy27 2015-11-13 03:24:09 UTC
currently it is not possible to assign hotkeys to the "File/Recent Documents/Clear List" menu item

just checked under Win8.1 x64 using LibO 5.0.3.1 and recent 5.1.0.0 alpha.

when confirmed please add this bug to meta bug 86899
Comment 1 Joel Madero 2015-11-13 04:58:28 UTC
I'll take this. The command exists - just needs to be added to the custom keyboard stuff.
Comment 2 tommy27 2015-11-13 06:36:45 UTC
great Joel,
once we can assign an hotkey it will improve Start Center UX
Comment 3 Joel Madero 2015-11-14 08:18:58 UTC
Go figure that this would be so hard. Un-assigning....the code is insane.
Comment 4 tommy27 2015-11-14 23:42:48 UTC
@Jay
Joel had to give up... is this something you can handle?
Comment 5 Joel Madero 2015-11-15 01:07:04 UTC
@Jay - just a heads up that even Kohei said something like "oh yeah - I remember that dialog being overly complicated." It's not populated in a specific list, instead there is something within the dialog that calls on certain uno commands based on triggers that I can't figure out. 

Code pointers:
cui/uiconfig/ui/accelconfigpage.ui
cui/source/customize/acccfg.cxx
Comment 6 Yousuf Philips (jay) (retired) 2015-11-17 07:35:46 UTC
@Joel: From what i understand from tommy's request, he just wants the 'Clear List' (.uno:ClearRecentFileList) entry to be accessible to assign a shortcut key in Tools > Customize > Keyboard, so the code pointers seemed overkill for this.

From what i know, in order to get an uno command into the keyboard configuration dialog, is for it to have an entry in sfx2/sdi/sfx.sdi with AccelConfig = TRUE.

@Maxim: Am i correct?
Comment 7 Maxim Monastirsky 2015-11-17 09:32:28 UTC
(In reply to Yousuf (Jay) Philips from comment #6)
> @Joel: From what i understand from tommy's request, he just wants the 'Clear
> List' (.uno:ClearRecentFileList) entry
There is no such commands. It's a fake entry used in the recent list to execute some custom action.
Comment 8 Yousuf Philips (jay) (retired) 2015-11-17 11:16:33 UTC
(In reply to Maxim Monastirsky from comment #7)
> There is no such commands. It's a fake entry used in the recent list to
> execute some custom action.

@Maxim: Yes the custom action seems to be at running vnd.org.libreoffice.recentdocs:ClearRecentFileList. Is this that much different than vnd.sun.star.findbar:FocusToFindbar found in the menubar?

http://opengrok.libreoffice.org/xref/core/framework/source/uielement/recentfilesmenucontroller.cxx#358
Comment 9 Maxim Monastirsky 2015-11-17 11:27:25 UTC
(In reply to Yousuf (Jay) Philips from comment #8)
> @Maxim: Yes the custom action seems to be at running
> vnd.org.libreoffice.recentdocs:ClearRecentFileList.
No. The history is cleared one line above it. The purpose of vnd.org.libreoffice.recentdocs:ClearRecentFileList is to update the start center thumbnail view.

> Is this that much
> different than vnd.sun.star.findbar:FocusToFindbar found in the menubar?
... which neither shows in the kb config dialog.
Comment 10 Yousuf Philips (jay) (retired) 2015-11-18 14:04:52 UTC
(In reply to Maxim Monastirsky from comment #9)
> No. The history is cleared one line above it. The purpose of
> vnd.org.libreoffice.recentdocs:ClearRecentFileList is to update the start
> center thumbnail view.

So those two commands need to be wrapped up in the new uno command

> ... which neither shows in the kb config dialog.

:D
Comment 11 Robinson Tryon (qubit) 2015-12-10 07:26:39 UTC Comment hidden (obsolete)