Plugin or option to add shortcuts to user directories to a menu?

Here you can discuss about your favorite plug-in.
Post Reply
User avatar
LigH
Posts: 80
Joined: Fri 19 Mar, 2010 14:12
Location: Germany
Has thanked: 12 times
Been thanked: 1 time
Contact:

Plugin or option to add shortcuts to user directories to a menu?

Post by LigH »

Hi there.

Is there any plugin (or even core option) to add useful user directories (like "Documents", "Pictures", "Application Data") to a menu, maybe the drive selection?

I guess I could add them to the user menu [F2] using the "cd" command (maybe via "cmd.exe /c" if it doesn't work with internal commands), but that would flash the interface while executing it.
Last edited by HaRT on Mon 20 Apr, 2026 00:38, edited 1 time in total.
Reason: Removed the Topic icon
User avatar
HaRT
Moderator
Posts: 11458
Joined: Tue 30 Aug, 2005 17:21
Has thanked: 270 times
Been thanked: 417 times

Plugin or option to add shortcuts to user directories to a menu?

Post by HaRT »

LigH, doesn't the Folder Shortcuts built-in feature solve your task? Please refer to the F1 Help's main page.
Фар есть инструмент, а не нянька. © 2009 DrKnS
User avatar
LigH
Posts: 80
Joined: Fri 19 Mar, 2010 14:12
Location: Germany
Has thanked: 12 times
Been thanked: 1 time
Contact:

Plugin or option to add shortcuts to user directories to a menu?

Post by LigH »

Yes, setting up folder shortcuts for the keyboard is a good solution; unfortunately, my laptop built-in keyboard does not have a "Right Ctrl" key. And I would love to see the destination in a menu. Maybe I can assign a Fn Key combo to pop up the Folder Shortcuts dialog. ShiftF7 may be appropriate.
User avatar
LigH
Posts: 80
Joined: Fri 19 Mar, 2010 14:12
Location: Germany
Has thanked: 12 times
Been thanked: 1 time
Contact:

Plugin or option to add shortcuts to user directories to a menu?

Post by LigH »

I could record a macro using Ctrl. and then navigate through the Commands menu with keyboard only. That works in the panels, but it does not add a caption to the footer with the function keys (here it seems I need to edit the *.lng file) and no shortcut key hint to the Commands menu entry. Also it works with the recorded keys only not when clicking with the mouse on the function key bar in the footer line.
Last edited by LigH on Mon 20 Apr, 2026 12:42, edited 1 time in total.
User avatar
HaRT
Moderator
Posts: 11458
Joined: Tue 30 Aug, 2005 17:21
Has thanked: 270 times
Been thanked: 417 times

Plugin or option to add shortcuts to user directories to a menu?

Post by HaRT »

LigH wrote: Mon 20 Apr, 2026 08:07 my laptop built-in keyboard does not have a "Right Ctrl" key. And I would love to see the destination in a menu
If you assign multiple folders to the same shortcut, you'll get them in a menu . And you can use a keyboard macro to invoke that shortcut with ShiftF7.
Фар есть инструмент, а не нянька. © 2009 DrKnS
User avatar
LigH
Posts: 80
Joined: Fri 19 Mar, 2010 14:12
Location: Germany
Has thanked: 12 times
Been thanked: 1 time
Contact:

Plugin or option to add shortcuts to user directories to a menu?

Post by LigH »

I found plugins for Far 1.x: Special Folders or Xcd; will they still work in Far 3.x? If so, probably in x86 versions only, support in x64 versions of Far manager will require a rebuild.
Last edited by LigH on Mon 20 Apr, 2026 12:52, edited 1 time in total.
User avatar
Smitis
Posts: 1732
Joined: Fri 18 Mar, 2005 12:51
Location: Питер
Has thanked: 25 times
Been thanked: 58 times

Plugin or option to add shortcuts to user directories to a menu?

Post by Smitis »

In the user menu:
@lua: panel.SetPanelDirectory(nil,1,win.SHGetFolderPath(5))
User avatar
LigH
Posts: 80
Joined: Fri 19 Mar, 2010 14:12
Location: Germany
Has thanked: 12 times
Been thanked: 1 time
Contact:

Plugin or option to add shortcuts to user directories to a menu?

Post by LigH »

This leads to "Documents", nice.

The more modern interface SHGetKnownFolderPath apparently uses a KNOWNFOLDERID instead of the deprecated CSLID. But LuaFAR 3 seems to support only the latter. I'll read the PDF documentation ... :rtfm:
Last edited by LigH on Wed 22 Apr, 2026 13:51, edited 1 time in total.
Shmuel
Posts: 7244
Joined: Thu 23 Mar, 2006 21:36
Location: Israel
Has thanked: 48 times
Been thanked: 636 times

Plugin or option to add shortcuts to user directories to a menu?

Post by Shmuel »

LigH wrote: Wed 22 Apr, 2026 13:42 I'll read the PDF documentation ... :rtfm:
I'm not sure if this PDF is up to date. The up to date document (in CHM format) can be found in %FARHOME%\Encyclopedia folder.
Last edited by Shmuel on Wed 22 Apr, 2026 14:00, edited 1 time in total.
User avatar
LigH
Posts: 80
Joined: Fri 19 Mar, 2010 14:12
Location: Germany
Has thanked: 12 times
Been thanked: 1 time
Contact:

Plugin or option to add shortcuts to user directories to a menu?

Post by LigH »

Unfortunately, luafar_manual.chm does not contain a list of folder constants (referring to CSLIDs). So back to the MSDN etc.

Pretty comprehensive overview: InstallMate 9 Manual / Tool to print a list
Shmuel
Posts: 7244
Joined: Thu 23 Mar, 2006 21:36
Location: Israel
Has thanked: 48 times
Been thanked: 636 times

Plugin or option to add shortcuts to user directories to a menu?

Post by Shmuel »

LigH wrote: Wed 22 Apr, 2026 14:38 Unfortunately, luafar_manual.chm does not contain a list of folder constants (referring to CSLIDs)
I agree that API documentation is useful, but it doesn't belong in the luafar3.dll manual.
Our goal is to document the specific interface of this DLL.
User avatar
LigH
Posts: 80
Joined: Fri 19 Mar, 2010 14:12
Location: Germany
Has thanked: 12 times
Been thanked: 1 time
Contact:

Plugin or option to add shortcuts to user directories to a menu?

Post by LigH »

Dave Lowndes will probably add a number column to the output of his "CSLIDs" tool, then we will have a complete list of the Windows system it ran on.
__

PS: See formatted table (PDF in ZIP) attached.
Attachments
CSIDLS.pdf.zip
(42.21 KiB) Downloaded 3 times
Last edited by LigH on Wed 22 Apr, 2026 17:55, edited 2 times in total.
User avatar
LigH
Posts: 80
Joined: Fri 19 Mar, 2010 14:12
Location: Germany
Has thanked: 12 times
Been thanked: 1 time
Contact:

Plugin or option to add shortcuts to user directories to a menu?

Post by LigH »

Please note:

There seems to be a bug in Windows (I have Windows 10 x64): Parameters for Program Files and Common Files each report the x86 path for both x86 and x64 versions of the parameter.

Code: Select all

38	CSIDL_PROGRAM_FILES	C:\Program Files (x86)
42	CSIDL_PROGRAM_FILESX86	C:\Program Files (x86)
43	CSIDL_PROGRAM_FILES_COMMON	C:\Program Files (x86)\Common Files
44	CSIDL_PROGRAM_FILES_COMMONX86	C:\Program Files (x86)\Common Files
I found other reports of this issue not related to Dave's tool, so it may be an error in Windows. Except when Dave released a Win32 exe instead of a Win64 exe ...
__

PS: Indeed, it was a 32-bit release; a 64-bit release was added.

Updated attachment
Attachments
CSIDLS.pdf.zip
(50.18 KiB) Downloaded 1 time
Last edited by LigH on Wed 22 Apr, 2026 21:28, edited 3 times in total.
User avatar
buniak_a_h
Posts: 4565
Joined: Sat 20 Apr, 2013 00:17
Location: Санкт-Петробад
Has thanked: 242 times
Been thanked: 674 times
Contact:

Plugin or option to add shortcuts to user directories to a menu?

Post by buniak_a_h »

LigH wrote: Sun 19 Apr, 2026 06:19 Is there any plugin (or even core option) to add useful user directories (like "Documents", "Pictures", "Application Data") to a menu
See «Named Folders» (f.e. here)
Last edited by buniak_a_h on Sat 25 Apr, 2026 10:32, edited 1 time in total.
Post Reply

Return to “General Plug-In Discussions”