mcode includes a file viewer/editor that opens files in tiles alongside your terminals. You can read and edit files without leaving the app.
Press Cmd+P (Quick Open), type to filter by filename, and select the file. It opens in a new tile in the current layout (or in the file panel when in kanban expanded view).
You can also click a project name in the title bar to open Quick Open.
Click anywhere in the file content to start editing. Press Cmd+S to save.
Enable Vim keybindings in Settings (Cmd+,) under the Editor section. With vim mode on:
:w— save:q— close the tile:wq— save and close
The file viewer uses CodeMirror and automatically detects the language from the file extension. Syntax highlighting applies to all common languages.
Press Cmd+W to close the file viewer tile (same as any other tile).