# Expandable Folders

You can expand individual folders in the file display just like you can in the folder tree. This lets you see the contents of sub-folders and copy files in and out of them without having to actually navigate to the folder in question.

![](https://3597805814-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3XSZSwWow0fDf6fQJobd%2Fuploads%2Fgit-blob-9b1c4d345e1c6faffbafee65a3162a891db93a68%2Fexpanded_folders.png?alt=media)

### Enabling expandable folders

You can enable or disable expandable folders from the [File Displays / Folder Expansion](https://chaoses-ib.gitbook.io/directory-opus/manual/preferences/preferences_categories/file_displays/folder_expansion) Preferences page.

### Expanding a folder

When expandable folders are enabled, a small area on the left of the filename is reserved for an arrow glyph. To expand a folder, either:

* Click the arrow glyph, or
* With focus on the folder, press Alt+Down

To collapse a folder, click the glyph again, or press Alt+Up.

### Drag and drop

When a folder is expanded, you can drag files into its sub-folders to copy or move them. You can also drag files out of sub-folders into the current (parent folder), or drop them on other folders to move them around.

On the [Folder Expansion](https://chaoses-ib.gitbook.io/directory-opus/manual/preferences/preferences_categories/file_displays/folder_expansion) Preferences page there's an option to enable "spring-loaded" folders, which expand when you drag over them and then collapse again when the drag operation is finished.

### Hiding the expansion glyphs

If you only want to use expandable folders sometimes, you can turn on the **Hide expand buttons until a folder is expanded** option. Expandable folders will still be enabled, but the expansion glyphs will be hidden until at least one sub-folder is expanded. To expand sub-folders without the glpyhs being visible, you can use the Alt+Down key, or configure your own key to run the `Go EXPANDBRANCH` internal command.

### Copying nested files

When you copy files from within sub-folders (via drag-and-drop, copy-and-paste or using the **Copy Files** command), you can choose two ways of performing the copy:

* **Recreate**: Opus will recreate the source folder structure (relative to the base folder) in the destination.
* **Same Folder**: Discards the source folder structure - all files would be copied directly into the target folder.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://chaoses-ib.gitbook.io/directory-opus/manual/basic_concepts/expandable_folders.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
