Named Folders Lite

Анонсы новых плагинов. Обсуждение плагинов ведется ниже.
pepak
Posts: 312
Joined: Sun 13 Jul, 2008 11:18
Has thanked: 1 time
Been thanked: 9 times

Named Folders Lite

Postby pepak » Sun 26 Jul, 2015 08:43

Named Folders Lite adds an unlimited number of directory shortcuts to FAR, accessible quickly through command line (cd::name to create a shortcut and cd:name to use it) or the disk menu. The original Named Folders by Victor Derevianko had always been one of my favorite plugins. Unfortunately, it didn't adapt well to FAR 3 if you keep multiple FAR instances running, especially if those instances run under a different user account but share the same FAR profile. It seemed to me that it would be less work to reimplement the plugin myself rather than try to fix it, and it would allow me to easily add new functionality if I needed it.

Plugin in action:


Links:
Discussion
Download
Homepage

pepak
Posts: 312
Joined: Sun 13 Jul, 2008 11:18
Has thanked: 1 time
Been thanked: 9 times

Named Folders Lite

Postby pepak » Sat 24 Sep, 2016 18:48

Version 1.02
  • FAR Forum user q726xan5on provided a number of ideas (and example code) for enhancing Named Folders Lite. Thanks!
  • Added Russian translation by q726xan5on.
  • Command "cd:" opens the plugin's panel.
  • Support for remembering the last used directory in the plugin's panel. Note that this feature is turned off by default; if you want to use it, enable it in Plugin Options.
  • Support for using "variables" within directory-based named folders. The support is disabled by default, but can be enabled in Plugin Options globally and then for each kind of variable separately:
    • Known folders: "$(DIR:STARTMENU)", "$(CSIDL_STARTMENU)"
    • Environment: "$(ENV:USERPROFILE)", "$(ENV:TEMP)"
    • CMD environment: "%USERPROFILE%", "%TEMP%"
    • Registry: "$(REG:HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run\SomeApp)"
  • Support for Plugin.Call functionality of FAR's macro language. Read the details in the documentation.
  • Fixed an endless loop in case the users attempts to jump to a directory which doesn't have any existing component (e.g. target is "D:\A\B" but there is no "D:" drive present).
  • When creating new named folders from command line using "cd::name", create all intermediate directories. Before, "cd::a\b" correctly created a named folder, but unless directory "a" was created manually from the panels, "a\b" would not be visible (though you could still use it with "cd:a\b").
  • Fixed overflowing edit in the Make Directory dialog.
  • Support for building Named Folders Lite with Delphi 10.1 Berlin.

pepak
Posts: 312
Joined: Sun 13 Jul, 2008 11:18
Has thanked: 1 time
Been thanked: 9 times

Named Folders Lite

Postby pepak » Sat 01 Oct, 2016 12:39

Version 1.03
  • Support for directly entering a subdirectory of a named folder with "cd:a/b\c\d". Here "a/b" is the name of the named folder and "\c\d" is a subdirectory to go to, determined as everything starting from the first backslash ("\"). E.g., assume that "a/b" points to "C:\WINDOWS". Then "cd:a/b\system32" opens "C:\WINDOWS\System32". This feature is disabled by default. If you want to use it, go to the plugin's options and activate the "Allow path suffix" option.
  • Support for paths starting with "\\", such as "\\server\share" or "\\.\pipe". For some reason, FAR will happily accept these paths on command line with a "CD \\path" command, but refuses to set panel directory to them - so I had to write an ugly hack which simulates a macro. For this reason, the support is rather shaky and requires that the command line be empty.
  • Optional support for plugin-based directories. Generally, with plugins you want to use the already existing functionality of linking directly to the plugin's panel (using Plugin ID, parameter and host file), but in some cases it may be better to use a plugin-starting command line. In that case, you can create a named folder without a link to plugin and provide a command line for directory: "edit:<for /?". This allows you to create shortcuts to non-panel functionality of a plugin. This feature is disabled by default. If you want to use it, go to the plugin's options and activate the "Allow plugin calls" option. Be wary of creating loops as these are not being detected and will eventually crash FAR Manager.
  • Enhanced the Plugin.Call("...", "OPEN") function to allow jumping to a specified named folder. Simply add the named folder to the end of the path. Example: Plugin.Call("...", "OPEN", "sys/win"), where "sys" is a directory of named folders and "win" is a named folder.
  • Fuzzy search for a named folder ("cd:a" where you have no "a" named folder, but perhaps have "a123") is now optional and can be set in plugin's options. Default value is enabled, consistent with plugin's behavior so far.
  • Search for a named folder can now ignore directories. That is, "cd:a" will now also find "b\a" or even "b\a123" (with the standard fuzzy search). This feature is disabled by default but can be enabled in the options.
  • Added Ukrainian translation.
  • Added a selection of samples (by q726xan5on) which demonstrates the use of some of the more advanced features of Named Folders Lite, particularly this version's support for plugin-based directories.
  • Added English help file.
  • When editing an item from the panel without changing its name, the item got deleted.
  • Fixed a bug where creating a new named folder from the panel and giving it an already-existing name could lead to the old value being overwritten regardless of the answer to the confirmation dialog (more specifically, answering "No" would overwrite the value and then reopen the new/edit dialog).


Return to “Анонсы новых плагинов”

Who is online

Users browsing this forum: No registered users and 3 guests