The File Explorer Window

PyScripter

The File Explorer Window
Previous Top Next

This is a powerful file explorer similar to that supplied by the Windows operating system.  You can navigate through the local file system and open Python scripts by clicking on them.  You can filter the displayed files and navigate directly to commonly used directories and directories on the Python path.
If you have installed Tortoise Git or Tortoise SVN you have access to version control functionality directly from PyScripter.

You can add the folders you commonly use to the Favourites list and you can easily set the root directory of the File Explorer to one of these folders.

graphic

The Toolbar

Commands:

Browse Back/Forward
Navigated through the history of browsed directories.  Note that the browsing history is cleared when you change the root directory of the File Explorer.

Go Up
Change the root of the File Explorer to the parent of the currently selected directory

Browse Path
Change the root of the File Explorer to commonly used directories, directories in the Favourites list and directories on the Python path

Filter files
If selected the File Explorer hides all files except Python scripts and modules.  By default these are the files with ".py" extension.  You can modify this default filter thought the IDE options customization.

Create New Folder
Create a new sub-folder of the currently selected folder


The Context Menu (on files and directories)

This is the standard explorer menu with the addition of the last item "File Explorer".  This submenu contains the following options:

·    "Explore here", which allows to change the root directory of the File Explorer to the selected folder.
·    "Add to Favourites", which adds the currently selected folder to the Favourites list
·    "Create New Folder" which creates a new sub-folder of the currently selected folder
·    "Search Path" which invokes the Find-in-Files tool on the selected folder.


graphicgraphic


The Context menu (on empty space)

This context menu offers options similar to those found in the toolbar plus the following commands:

Manage Python Path...
Shows a dialog box from which you can modify (add and remove folders) from the python path (sys.path).

Change Filter...
Allows you to change the filter which applies to the files shown.  Use a semicolon separated list, i.e.  "*.py;*.pyw".

Refresh
Refresh the contents of the File Explorer.  Normally not needed since it updates automatically.


graphic

The Browse path submenu

By selecting menu options from this submenu, you can set the root directory of the File Explorer to the corresponding file directory.  "Active Script" sets the root directory to the directory of the script currently edited.

graphic



The Favourites submenu

Shows the list of favourites from which you can select the one you want to set as the root folder of the File Explorer. 

graphic

It also provides the following commands:

Add to Favourites
Adds the currently selected folder to the Favourites list.

Manage Favourites...
Shows a dialog box (see below) from which can manage (add and remove folders) the Favourites list.


The Python Path submenu

This submenu shows you the directories in the Python path of the embedded Python interpreter.  Selecting a directory changes the the root directory of the File Explorer to that directory

graphic


The Manage Favourites dialog box:

This dialog box allows you to add or remove folders from the Favourites list.

graphic