Skip to content
dqhieuPublic

About

No description, website, or topics provided.

Resources

Contributing

Stars

277 stars

Watchers

3 watching

Forks

Repository files navigation

Silica

A lightweight code editor for macOS, made of glass. Open a folder, find files fast, and edit with syntax highlighting and a Markdown, HTML and CSV preview. Images, PDFs and video open beside your code, all in a native SwiftUI and AppKit app.

Silica editing a Swift project, with the file tree on the left and the editor on a glass card

Download

Get the latest DMG from Releases, open it and drag Silica to Applications. Or install it with Homebrew:

brew install --cask dqhieu/tap/silica

Silica checks for updates once a day and installs them for you; you can turn that off in Settings › General.

Silica needs macOS 15 or later. The Liquid Glass look needs macOS 26; earlier versions get plain bordered cards.

Features

  • Projects. Open a folder to get a window with a file tree. Files and folders your .gitignore excludes are dimmed, and the tree updates as files change on disk. Create, rename and move files to the Trash right in the tree, and filter it as you type.
  • A file tree that keeps its bearings. Scrolled deep into a project, the folders that contain the rows you're looking at stay pinned at the top. Folders show their Finder icons, so custom icons and packages such as .xcodeproj look like what they are.
  • Quick Open and project search. Jump to any file with fuzzy matching, or search the text of every file in the project.
  • Tabs. Drag tabs to reorder them, step through them with ⌃Tab, and close one with a middle click. With more tabs than fit, a mouse wheel scrolls the tab bar. Right-click a tab to reveal its file in the explorer or in Finder, or to copy its path.
  • Syntax highlighting for 27 languages, including Swift, JavaScript, TypeScript, Python, Go, Rust, C, C++, Java, Kotlin, Dart, HTML, CSS, JSON, YAML and Markdown. Diff and patch files show added lines in green and removed lines in red.
  • Nine color themes, each with a light and a dark palette: Atom One, GitHub, Xcode, Solarized, Catppuccin, Gruvbox, Tokyo Night, Rosé Pine and Dracula.
  • Your fonts. Choose the editor's font and size, and set the sidebar's text size on its own, in Settings › Fonts & Colors.
  • Markdown preview, with highlighted code blocks.
  • CSV preview. See .csv and .tsv files as a table.
  • HTML preview. .html files render as in a browser, with their styles, images and scripts, and with your unsaved changes.
  • Images, PDFs and video. Images, PDF files and videos open in their own tabs instead of as binary files. Animated GIFs, PNGs and WebPs play, a password-protected PDF asks for its password, and each tab keeps its place in its video.
  • Editing tools. Line numbers, indent guides, an optional minimap, word wrap, go to line, toggle comment, and moving or duplicating lines.
  • A terminal under the editor. ⌃, or the button at the end of the tab bar, opens your shell in the project's folder, in a card of its own below the editor. Open as many as you need with ⌃⇧ or the card's + button: each gets a tab in the card's header, which you can drag to another place in the row. It runs on libghostty, the terminal emulator inside Ghostty, so full-screen programs, true color and the mouse work as they do there. It follows the editor's font, and light and dark mode. ⌘-click a web address to open it, or a file's path to open the file in a tab, at the line a compiler or a search printed after it.
  • Picks up where you left off. Projects reopen their tabs, and recent projects are on the welcome window.
  • Works with Finder. Use Open With, drop files on the Dock icon, or run open -a Silica <path>. Drag a file or folder out of the sidebar, or the project's folder icon from beside its name, to hand it to Terminal, Finder or another app.

Keyboard shortcuts

Shortcut Action
⌘P Quick Open
⇧⌘F Find in Project
⌥⌘J Filter files in the tree
⌘L Go to Line
⇧⌘V Toggle Markdown, CSV or HTML preview
⌃⌘S Show or hide the sidebar
⌃` Show the terminal, or hide it from there
⌃⇧` New terminal
⌘K Clear the terminal
⌃Tab / ⌃⇧Tab Select the next or previous tab (also ⇧⌘] / ⇧⌘[); from a terminal, the terminals' tabs
⌘/ Toggle comment
⌥↑ / ⌥↓ Move lines up or down
⇧⌥↑ / ⇧⌥↓ Duplicate lines up or down
⌥Z Word wrap
⌘+ / ⌘− / ⌘0 Increase, decrease or reset the font size

Building from source

You need Xcode 27 or later.

  1. Clone the repository and open Silica.xcodeproj.
  2. In the Silica target's Signing & Capabilities, choose your own team (or "Sign to Run Locally"). Please don't commit that change.
  3. Press ⌘R. Xcode fetches the Swift packages on the first build.

Contributing

Bug reports, ideas and pull requests are welcome. Read CONTRIBUTING.md before you start on a change.

Star History

Star History Chart

License

Silica is released under the MIT License. It includes swift-markdown, swift-cmark, Sparkle and libghostty-vt, whose licenses are in Silica/Resources/Licenses and in Settings › About.

About

No description, website, or topics provided.

Resources

Contributing

Stars

277 stars

Watchers

3 watching

Forks

Releases

Packages

Contributors

Languages