Viewers

Text editor

Edit text files in a tab of the window, and lose nothing when you quit.

Return or a double-click on a text file opens it as a tab beside the Files tab, in the same window. The editor knows many languages, has several cursors, and keeps unsaved text across a quit. Opening a file never changes it, and saving is built to survive a crash. A Markdown file can also be shown as a page beside the text: the Markdown preview has a page of its own.

Good for developers and keyboard users.

The built-in text editor in a tab of the Raqun Commander window, with syntax colors and line numbers.
The editor in a tab of the Raqun Commander window, with syntax colors and line numbers.
  • In a tab

    Return or a double-click opens a text file as a tab beside the Files tab, up to eight at a time, and a file is open in one tab only. ⌘⌥→ and ⌘⌥← go round the tabs, and ⌘W closes the one that shows.

    Command Option Right arrowCommand Option Left arrowCommand W
  • Your choice of editor

    By default Return and a double-click open a text file here, and ⌘E opens the selected file in the app macOS has for it. Turn off Open text files in Raqun Commander's editor in Settings ▸ Formats ▸ Text and the two swap.

    Command E
  • Languages and colors

    The language comes from the file's name or a #! line, and a menu at the right end of the status line changes it. C, C++ and Objective-C, JavaScript and TypeScript, Java, Swift, Go, Python, Rust, shell, Makefile, JSON, YAML, Markdown, HTML, XML, CSS, SQL, diffs and ini-style config are known.

  • Several cursors

    ⌘D selects the word at the cursor and, pressed again, adds the next match; ⌃⌘G makes every match a cursor, and ⇧⌘L puts one at the end of each selected line. Typing, deleting and pasting act at every cursor, and one ⌘Z takes it all back.

    Command DControl Command GShift Command L
  • Find and replace

    ⌘F opens a find bar with options for case, whole words and regular expressions, and \1 in the replacement stands for the first group. ⌥⌘F adds replace, with All in one undo step, and ⌃G goes to a line.

    Command FOption Command FControl G
  • Safe saving

    Saving normally writes a new file next to the old one with its mode, owner, tags and other attributes, then renames it over the old one, so a crash or a full disk leaves the old file or the new one, never half of either. Opening a file never changes it: the encoding is kept, and line endings are never converted.

    Command S
  • Unsaved text is kept

    Raqun Commander writes each tab's unsaved text to a recovery folder, reads it back, and only then lets quitting go ahead without a question. At the next launch the tabs return in order, with the unsaved text as an edit that Undo takes away.

  • SVG beside the text

    The text of an .svg file can be shown as the drawing it describes, beside the text, with View ▸ Preview (⇧⌘P) or the eye. macOS draws it from the text as it is, saved or not, a moment after the last key. When the text cannot be drawn yet, the last drawing stays, dimmed, with a line that says why, and nothing outside the text is loaded.

    Shift Command P