Switching to folders, opening files, websites
With the grammar folders (module file _folders.py) you switch to one of your predefined drives, folders or files or to one of your favourite websites.
You can also call subfolders or files of: - Specified directories; see bottom of details, and:
- If a This computer window or a Open or Save as dialog is active, the folders and files of the current directory are available.
The behaviour is different for different groups of windows: - If you are in a dialog window (Open, Save As) you switch to the wanted folder inside this window.
- If you are outside a dialog window, the desired folder is opened into a "This Computer" (or explorer) window (See more details for this folders switching strategy).
- With the additional command word paste you can print the path of the folder or file to your active application
- With the additional command word new you can open a new "This Computer" window.
You can show the grammar with the command show folders. With edit folders you can change your folders list, files list or other parameters of the grammar.
command | comment |
folder {folderlist} | Go to one of the folders in the folderlist |
sub folder {subfolders} | Go to one of the sub folders in the current folder or file dialog |
sub folder {subfolders} remember | Remember the named subfolder for future direct calling. See remember. |
website {websitelist} | Go to one of the websites in the list (it is opened in your default browser) |
file {filelist} | {subfiles} | Go to one of the files in the filelist (in your ini file) or files in the current folder (see at bottom) |
file {subfiles} remember | Remember the named (sub) file for future direct calling. See remember. |
this (folder|file|website) remember | Remember the selected folder, file, or visited website for future direct calling. See remember. |
drive {letter} | Go to one of the drives mentioned in the "letters" list |
folder up [1-10] | Move up one or more folders up in the hierarchy. Different behaviour for dialog windows, this computer/explorer, Internet Explorer and Firefox |
folder{folderlist} {folderoptions}+ | Do one or more additional actions with the folder |
file {filelist} {fileoptions}+ | Do one or more additional actions on the file |
drive {letter} {folderoptions}+ | Do one or more additional actions (see below) |
(show | edit) folders | show or edit the data for this grammar |
on {letters} | special trick for multiple drives, having the same structure. (see details |
folder options | explanation |
new | open always in the new "my computer" window |
explorer | find or open in a Windows Explorer window (or 2xExplorer if defined) (not working at the moment) |
paste | paste the folder name at the place of the cursor |
maximise | maximise the window after opening or activating |
restore | restore the window after opening or activating |
file options | explanation |
paste | paste the file name at the place of the cursor |
maximise, restore | maximise, restore the window after opening or activating |
edit | print | open | open the file in open, print, edit mode. (open is the default, except for .py files, they have edit as default) |
on {letters} | special trick for multiple drives, having the same structure. (see details) |
Using environment variables
In the definition of folders, files and virtual drives you can now use environment variables like %HOME%, %PROGRAMFILES% or %APPDATA%. It is also possible to use ~ instead of %HOME%.
See
the page about using these environment variables.
When editing your folders you will see the following inifile sections:
section | comment |
files | Here you can define your filelist. Delete all the unwanted entries, and enter a word (spoken form) on the left, and the filename on the right. You can make use of virtualdrives (below) and of entries from the folders list.
/ is translated into \. |
folders | Here you can define your folderlist. Delete all the unwanted entries, and enter a word (spoken form) on the left, and the folder name on the right. You can make use of virtualdrives (below) |
general | options to tune this grammar, see below |
The options start this computer and start windows explorer now obsolete.
grammar words | Here you can define your synonyms, or translations for this grammar |
grammar name | Here you can define the name of the grammar |
letters | List of drive letters which can be used in the drive command, and also on the additional On {letters} feature (see details |
sites | A private (Quintijn) additional feature, see the details if you are curious. |
virtualdrives | For folders that have some subfolder entries, you can make a common start.
A two letter combination serves as a virtual drive. Delete unwanted entries. Virtual drives can be recursive. |
websites | here you can define your own websitelist.
Note you can most often skip http:// and even www.. See you the examples in inifile |
Options in section general of configuration file:
general | possible value | comment |
2xexplorer | c:\program files\2xexplorer\2xexplorer.exe | Probably obsolete option |
automatic track files | T | Switch on (T) or off (F, or leave away). T means that files of a folder can be tracked automatically and put in the files list |
automatic track folders | T | Switch on (T) or off (F, or leave away).
T means that sub folders of a folder can be tracked automatically and put in the folders list. Beware of too long lists! |
child behaves like top | specify if a child window should behave as top window | Should be configured like in actions.ini, see actions configuration file |
citrix apps = | a special app name | Special option for only printing a folder path or file path instead of opening it. |
ignore file patterns | ~*; .* | for ignoring files in the automatic track files option |
initial on | 1 | Unimacro option for always switching on this grammar. See _control for more information. |
start this computer | HW start, My Computer | Possibly obsolete |
start windows explorer | HW start, Windows explorer | Starts in some cases an explorer window |
subversion executable | C:\Program Files\TortoiseSVN\bin\TortoiseProc dot exe | For special subversion command options. |
top behaves like child | specify if a top window should behave as child | Should be configured like in actions.ini, see actions configuration file |
track file extensions | .py; .docx; .xlsx; .txt; .ini; .jpg; .jpeg | Restrict automatic file tracking for a specific directory to these file extensions. |
track files | | specify the virtual drives on which you want automatic file tracking |
track folders history | 10 | an experimental option to "remember" a recent folders list |
track folders virtualdrives | md; um; qh; mdoud | This is the most useful of the special options: subfolders in these "virtualdrives" are tracked and put into the folders list. |
Subfolders or files in an opened folder or file dialog
command | comment |
subfolder {subfolders} | the subfolders of the current folder are put in the list |
file {files}|{subfiles} | the files list is defined by yourself, for frequently used files.
the subfiles list is filled for all the files of the current folder, when they match one of the given extensions. dots, hypens etc. are skipped, extensions are NOT spoken. |
|