Text editor that does not get in the way
  • Rust 99.3%
  • Shell 0.7%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Kamil Marut 9718901d01
All checks were successful
Verify and release / verify (push) Successful in 8m54s
Verify and release / build (push) Has been skipped
feat(settings): configure file associations
2026-11-28 14:30:31 +01:00
.forgejo ci: bump PKGBUILD alongside the version bump 2026-11-28 00:01:11 +01:00
.githooks chore: set up Git pre-push hook 2026-11-27 18:33:52 +01:00
assets feat: working editor 2026-11-19 11:31:57 +01:00
packaging build: build release tarballs, .deb, and AppImage 2026-11-23 19:51:40 +01:00
scripts ci: bump PKGBUILD alongside the version bump 2026-11-28 00:01:11 +01:00
src feat(settings): configure file associations 2026-11-28 14:30:31 +01:00
vendor/xattr feat: working editor 2026-11-19 11:31:57 +01:00
.gitignore feat: working editor 2026-11-19 11:31:57 +01:00
AGENTS.md feat(workspace): reopen last closed tab 2026-11-28 13:30:22 +01:00
bump.sh ci: bump PKGBUILD alongside the version bump 2026-11-28 00:01:11 +01:00
Cargo.lock feat(settings): configure file associations 2026-11-28 14:30:31 +01:00
Cargo.toml feat(settings): configure file associations 2026-11-28 14:30:31 +01:00
LICENSE Initial commit 2026-11-18 23:22:16 +01:00
PKGBUILD ci: bump PKGBUILD alongside the version bump 2026-11-28 00:01:11 +01:00
README.md feat(settings): configure file associations 2026-11-28 14:30:31 +01:00

Suns logo

Suns

Text editor that does not get in the way.

cargo run --release -- path/to/folder-or-file

Requires git on PATH for the source-control features. Fonts: IBM Plex (OFL, assets/fonts).

Settings

Choose File → Open Settings to change word wrap and indentation guides for all projects. File → Open Settings File opens the underlying JSON in the editor and creates it with defaults if needed. Changes saved in that tab apply immediately. The file lives at $XDG_CONFIG_HOME/suns/settings.json, or ~/.config/suns/settings.json when XDG_CONFIG_HOME is unset. If you change the file outside Suns, reopen the Settings page from the File menu to reload it.

{
  "word_wrap": false,
  "indentation_guides": true,
  "file_associations": {
    "*.templ": "HTML",
    "Jenkinsfile": "Groovy"
  }
}

Choose File → Open Settings, then use File Associations to add, edit, or remove filename and glob rules. Remember File Association… in the command palette starts with the current filename. To edit file_associations directly in the settings file, use the language names from Change Language Mode….

Patterns are case-sensitive. Patterns without a slash match the filename in any directory. Patterns with a slash match the full path, so use **/templates/*.templ to match files directly inside any templates directory. Exact names and paths take precedence over globs. If multiple globs match, the alphabetically first pattern wins. Open files in Automatic mode pick up association changes immediately.

Install

Arch Linux

curl -fsSLO https://git.marut.network/exler/suns/raw/branch/main/PKGBUILD && makepkg -si

This fetches PKGBUILD and installs its pinned tarball from the Releases page. suns . or suns path/to/project opens a folder, suns file opens a file, and "Suns" appears in the app launcher. With no argument it opens an empty window.

Other

Download the .deb or the .AppImage (then chmod +x it) from the Releases page. The AppImage uses your system's Vulkan, Wayland and X11 libraries.

Release

Run ./bump.sh (patch; --minor/--major for the others; edits Cargo.toml, Cargo.lock and PKGBUILD), commit, then git tag vX.Y.Z && git push --tags. CI checks the tag against Cargo.toml and PKGBUILD, runs the tests with --locked, builds the tarball, .deb and .AppImage, and attaches them to the release.

The PKGBUILD has no checksum (SKIP): the tarball is built after it is committed. Until CI publishes the release, the Arch install command fails with a 404. Rebuilding the same version only needs a pkgrel bump.