Repository navigation
Project Window
Ctrl+B opens the project tree on the left (and raises it, or closes it when it is already on top). It opens by itself when divide starts without files.

Enter opens a file, or folds and unfolds a folder. With the mouse, a click puts the bar on a file and a double click opens it; a click on a folder folds or unfolds it. Version control and cache folders (.git, __pycache__, .venv, node_modules, tool caches) are hidden; vendor/ stays visible.
The tree shows folders with Turbo Vision's ► and ▼. Options > File type marks puts a coloured mark before each file, in the cell where a folder has its arrow, so the tree keeps its width. Options > Plain symbols goes back. divide remembers the choice.

| Mark | Files |
|---|---|
{ |
Div templates (.tpl, .div) |
% |
dialects |
? |
PHP (<?php) |
: |
JSON |
# |
Markdown |
< |
HTML, XML |
* |
CSS |
; |
JavaScript |
@ |
Python |
$ |
shell scripts |
^ |
images |
& |
composer.json, composer.lock
|
! |
.gitignore |
- |
any other file |
The marks are plain ASCII on purpose: every terminal, font and platform draws them one cell wide, so they can never shift a line or break a frame, here or over SSH.
| Key | |
|---|---|
| Ins | new file in the folder under the cursor; parts/menu.tpl creates parts/ too. The file opens. |
| F7 | new folder; nested paths like assets/css are fine |
| F2 | rename; the name without its extension comes selected. Open windows follow the file. |
| Del | delete, after confirming. Folders go with everything in them (divide tells you how many items). |
| Ctrl+R | refresh from disk |
| Alt+F10, Shift+F10, right click | the local menu with all of the above |

Good to know:
- Deleting is permanent (nothing goes to a trash can), which is why divide always asks.
- Windows of deleted files close, except those with unsaved changes: your work stays open and can be saved again.
- A data file chosen with Run > Data file stays with its template when either is renamed.
- Names that would leave the project (
../x) are refused. - Files created outside divide appear with Ctrl+R; files created with Save as appear by themselves.
- After any of these operations, includes are checked again (see Checking Templates).
divide · part of Divengine · report an issue
Manual
- The Desktop
- Editing Templates
- Editing PHP
- Outline
- Finding Files and Commands
- Language Servers
- Completion
- Checking Templates
- Rendering
- Render Trace
- Running PHP
- Running Flows
- Flow Structure
- Flow Designer
- Flow Functions
- Flow Simulation
- Function Mock Simulation
- Debugging PHP
- Web Server
- Data Files
- Other Files
- Project Window
- Div Setup
- Dialector
- Translating Templates
- Composer
- Git
Reference
Links