Files
The session folder's tree in the Code panel, to create, rename, move, copy and delete files with their imports updated, find who uses a file, open files in another app, copy their paths, keep scratch files and create Gists.
The Files list, to the left of the editor, shows the session's folder as a tree. It creates, renames, moves, copies and deletes files and folders without leaving Persisty. Right-clicking an item opens the file menu; on an empty spot of the list, the menu has New, Paste and Local History for the session folder.
The tree
Files git ignores are dimmed, and .git never shows. At the top of the list, New file, New folder and Refresh act on the session folder. The list changes width: drag the divider, or use ← and → with it in focus; a double click brings back the default width.
⌘ + click and ⇧ + click select several items, and ⌘ A selects every visible one. With the tree in focus, the arrows move through the items, → and ← open and close a folder, ↵ opens the file, and typing the start of a name jumps to it. ⇧ F10, or the menu key, opens the menu of the item in focus.
Create files and folders

New, on the menu, creates a File or a Folder inside the item's folder. The same submenu creates TypeScript, JavaScript, HTML, CSS, JSON, Markdown, Dockerfile and EditorConfig files with a minimal template. You type the name in the tree itself, and a name that already exists is refused, with the reason. New › Scratch file creates a file outside the folder; see Scratch files.
Scratch files
A scratch file is a file outside the project, to jot something down or try a snippet without touching the session's folder. New › Scratch file, in the tree, or New Scratch File, in the palette, asks for the language, or Plain text, and the file opens in a tab marked as a scratch, outside the project. It is saved on its own.
The key is ⌃ ⇧ N in WebStorm and ⌘ ⇧ N in WebStorm (macOS), the latter only with the cursor in the code: outside it, ⌘ ⇧ N still opens Choose what to open. In the VS Code keymap, use the tree or the palette.
The Scratches section, at the bottom of the tree, starts closed and shows how many scratch files there are. Open, it lists the scratch files of every project: a click opens one in a tab, and right-clicking offers Open, Rename… and Delete. Delete asks first and sends the file to the Trash; if it is open, the tab closes without saving. A scratch file's name cannot start with a dot, because it would vanish from the list.
Rename, move and copy
Rename… edits the name in the row itself, and open tabs follow the file with their unsaved text and undo. On an editor tab, the same is under Rename File….
Refactor › Move… and Refactor › Copy… pick the destination folder from a list with search. Dragging items onto a folder moves them too, and holding ⌥ copies them. While you drag, the item's name follows the pointer, the destination folder is highlighted, and a closed folder opens if the pointer rests on it. Where an item cannot be dropped, the tree says why, such as "already here". Esc cancels the drag.
With the tree in focus, ⌘ X, ⌘ C and ⌘ V cut, copy and paste files, to and from the Finder as well; Cut, Copy and Paste are on the menu. Paste puts the items in the folder you clicked, or in the folder of the file you clicked.
Imports when renaming and moving
In TypeScript, JavaScript and Rust, renaming and moving files and folders also updates the imports in the files that use them. This works for Rename… in the tree and on the tab, Refactor › Move…, dragging, and cut and paste. Before touching the disk, Persisty asks the language server what changes. When there are imports to update, a preview lists the files, each with a checkbox: ↵ confirms and Esc cancels the operation. Unchecking them all only renames or moves.
Afterwards, a notice says how many imports were updated and in how many files, and names what was left out. In open tabs, the change is one step of the tab's undo. Closed files are written directly, and the version from before stays in the local history, labelled "Before updating imports". Files outside the project folder, such as a neighbouring package in a monorepo, are not included, and the notice says how many.
The file moves even when the imports can't be updated, and the notice says why: the server didn't answer within 3 seconds, there were repeated names at the destination, or the move stopped halfway. Copying leaves the imports alone.
Delete
Delete… always asks first and sends the items to the Trash. For 10 seconds, Undo on the notice, or ⌘ Z with the tree in focus, brings everything back. If an open file has unsaved changes, Persisty first asks whether to save or discard them; with Save automatically on, it saves them without asking.
When other files import what is about to be deleted, the confirmation says where: up to 10 places, with the file and the line, and "and N more" for the rest. The button becomes Delete anyway. That warning comes from the language server and only shows if it answers within 3 seconds, counting the time it takes to start; with no answer, you get the usual confirmation. Only the chosen files are searched, not a folder's contents, and a file that imports one of them but is also going to the Trash doesn't count.
When the name already exists
When moving, copying or pasting, if the name already exists at the destination, Persisty asks once: Rename, Replace or Skip. Do the same for the next ones applies to the other repeated names in the same operation. Replace sends the old item to the Trash, and the unsaved changes of an open file are never lost without you answering.
Large copies and failures
Large copies and moves show their progress under the tree and can be stopped with Cancel, leaving nothing half done. If an operation stops partway, what already went stays, and the notice says which item failed. When a Replace fails, the notice says which item was not placed and that the old version went to the Trash; tabs closed for the operation come back in the same group and the same position.
Usages and inspection
Find Usages, on a file's menu, lists the files that import it; see Usages of a file. Inspect Code, on a file, a folder or several selected items, shows the problems the language servers find in them; see Inspect code.
Open in
Open in, on the tree and on the tab, takes the item elsewhere: Reveal in Finder, Terminal in folder, which opens a new terminal session in the item's folder, Open with the default app, Open in the browser (HTML, HTM and SVG only), your IDE at the cursor's line, and the file's page on GitHub, GitLab or Bitbucket. On a branch that was never pushed, the forge page is the current commit's.
The IDE is the one you choose in Settings › Workspace › Default IDE, among those Persisty finds on the computer; the default is None. The same IDE opens the session folder from the session tab's menu, the palette and the project.
Copy path
Copy path gives the Absolute path, the Path from the project, the Path from the repository root, the File name, the Reference and the Link on GitHub (or GitLab, or Bitbucket), at the current commit. The reference is file:line, or file:start-end with lines selected on the tab. With several items selected, each goes on its own line.
Create Gist
Create Gist…, on the tree's and the tab's menus and in the palette, sends files to a GitHub Gist, on the account you connected in Settings › Integrations. From the tree go up to 20 selected files, no folders; from the tab, its file or its scratch file. From the palette, with the cursor in the code, only the selected snippet goes, or the whole file when nothing is selected.
The Create Gist window has the Description, which is optional, each file's name, the Visibility and, with more than one GitHub account, the Account. Secret, the default, does not show on your profile, and only people with the link see it. Public shows on your profile and in GitHub's search. Binary, empty or too large files are left out, and the notice says which.
Before sending, Persisty looks for secrets in the files: a .env, a key file, a private key, a GitHub or Slack token, an AWS key or a line that looks like a password, a token or a key. If it finds one, the window says in which file and on which line, and only Send anyway sends. A secret Gist can still be seen by anyone with the link.
Once the Gist is created, the link goes to the clipboard, and Open, on the notice, opens the Gist in the browser.
The first time, Persisty asks GitHub for the gist permission, with a code to confirm in the browser, as when you connected the account. If you sign in to another GitHub account at that point, nothing is sent, and the notice says which account to sign in to. An account connected by token must already have that permission; without it, the error says what is missing.
Bookmarks and local history
The Bookmarks submenu has Add to Bookmarks, for the selected items, or Remove from Bookmarks, when they are all there already. Bookmarks follow the file or folder when it is renamed or moved, and their list opens from a key; see Bookmarks.
The Local History submenu has Show History, which on a file lists the kept versions and on a folder shows what changed in it, deletions included, and Put Label…. On the empty space of the list, the same submenu works on the session's whole folder. See Local history.
Reload from Disk
Reload from Disk reads again what changed outside the editor. On an open file with unsaved changes, it asks first, because those changes are lost. On a folder, it lists the folder again. To list the whole tree again, use Refresh, at the top of the list. Synchronize the Tree, ⌥ ⌘ Y in the WebStorm keymaps, does the same and also checks right away whether the open files changed on disk.
Change the file type
Change File Type…, on the tree, on the tab or in the palette (⌘ K), reads a file as another language, such as a .env as Shell. The choice applies to that file in this folder and follows it when it moves. Back to automatic returns to the language from the extension.
Hide files
In Settings › Files, Hide files lists patterns such as **/node_modules. What matches a pattern disappears from the tree, from search and from Open file. The built-in pattern is **/.DS_Store. Each pattern has a switch to turn it on and off and a button to remove it; a new one comes in through New pattern and Add. .git is always hidden.
Keys
⌘ X, ⌘ C, ⌘ V, ⌘ Z and ⇧ F10 work in the tree in every keymap. The others belong to the two WebStorm keymaps:
| Action | Key |
|---|---|
| New | ⌃ N or ⌃ ↵; in WebStorm (macOS), ⌘ N or ⌃ ↵ |
| Rename | ⇧ F6 |
| Move to another folder | F6 |
| Copy to another folder | F5 |
| Delete | ⌫ or ⌘ ⌫ |
| Find Usages of the file (also on the tab) | ⌥ F7 |
| Copy Path (also on the tab and in the code) | ⌘ ⇧ C |
| Copy Reference (also on the tab and in the code) | ⌥ ⌘ ⇧ C |
| Synchronize the Tree | ⌥ ⌘ Y |
| New Scratch File | ⌃ ⇧ N; in WebStorm (macOS), ⌘ ⇧ N, with the cursor in the code |
In the VS Code keymap, these actions are on the menu. In WebStorm (macOS), ⌘ N opens New only with the focus in the tree; elsewhere, it opens a new terminal. Settings › Shortcuts has a Files group, with where each key works: in the tree, on the tab or in the editor.
On Windows and Linux, which are in preview, Ctrl and Alt stand in for ⌘ and ⌥, Delete deletes, New is Alt Insert, and New Scratch File is Ctrl Alt Shift Insert. The Finder gives way to File Explorer or the file manager.
Plan and limits
The tree, every file operation, the scratch files and the Gist are on the free plan.
Updating the imports and the warning when deleting depend on the language server, in TypeScript, JavaScript and Rust; without it, rename, move and delete work as before.
Scratch files live in Persisty's data folder, outside any project: they do not go into Git or the local history, the editor does not check whether they changed on disk, and the language server's suggestions and errors may be missing in them. The code has no right-click menu, so a snippet's Gist goes through the palette. A Gist takes at most 20 files.
The tree only shows and changes what is inside the session folder. On Windows and Linux, pasting files to and from the system and undoing a delete are still being checked in use.