- Rust 99.3%
- Shell 0.7%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| .forgejo | ||
| .githooks | ||
| assets | ||
| packaging | ||
| scripts | ||
| src | ||
| vendor/xattr | ||
| .gitignore | ||
| AGENTS.md | ||
| bump.sh | ||
| Cargo.lock | ||
| Cargo.toml | ||
| LICENSE | ||
| PKGBUILD | ||
| README.md | ||
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.