openeditorcode.devFIELD MANUAL / 0.2.41Español
explorer.md DOCUMENTATION

05 — In the project

Explorer and files

Browse the project, create and delete files, and understand the tree and its exclusions.

v0.2.41Source review ·
On this page

Browse the tree

Lists root children, sorting folders before files. ↑/↓ selects; Enter or click opens a file or toggles a folder. .git is always hidden. Ignored entries remain visible in gray.

Left only collapses an expanded folder. Shift+Enter collapses descendants if open or recursively expands subdirectories if closed (except .git); Ctrl+Shift+Enter collapses everything. There is no Right-to-expand or Left-to-parent action.

Virtualization renders visible rows and a margin, rather than the whole tree at once. Long names scroll when a row is selected. F5 preserves the selection index, so ordering changes may select another path.

Create a file

  1. Select the destination folder, or a file whose parent is the destination.
  2. Press Ctrl+N, type a name and confirm with Enter. Esc cancels.
  3. OEC creates exclusively, refreshes the tree and opens a tab. If the name exists, it reports an error without replacing it.

Rename files and folders

With Explorer focused, select an entry and press F2; the palette also offers Rename when an entry is selected. The dialog starts with the current name: Enter confirms and Esc cancels. It cannot rename the root and rejects empty names, . or .., slashes and existing targets. Errors keep the dialog open.

After renaming it preserves affected file/image tab content and state while updating their paths, including descendants of a renamed folder; it moves expansions, refreshes the tree and invalidates the index. Links are renamed as links. Git can observe the disk rename.

Delete an entry

Delete opens a confirmation; Enter deletes and Esc cancels. Folders are recursively deleted without a recycle bin. Affected modified tabs are checked before execution and block deletion.

On success, affected tabs are closed and the index is invalidated. The root cannot be deleted. A link is removed as a link without recursively deleting its external target.

Count lines and rank large files

Count project lines in Ctrl+P reads disk text, skipping binary, unreadable and oversized files. Empty files count as zero lines; a final newline adds none. Counts appear in the tree without automatic updates on save; this uses base rules rather than temporary exclusions.

Show massive files from the palette or click [Masivos] in the header to switch Explorer to a list of readable text files sorted by descending line count (ties by path). It follows root .gitignore even if search.respectGitignore is false; it ignores temporary exclusions. It reports partial counts at the 50,000-entry index limit. Click [Tree] in the header to return (the actual label currently says Árbol).

Chapter sources

Links pinned to the reviewed commit; they do not follow main.

Static documentation · ES / ENView coverage ↗