[package]
name = "hjkl"
description = "Vim-modal terminal editor: standalone TUI built on the hjkl engine."
keywords = ["vim", "modal", "editor", "tui", "ratatui"]
categories = ["text-editors", "command-line-utilities"]
version.workspace = true
edition.workspace = true
license.workspace = true
repository.workspace = true
homepage.workspace = true
authors.workspace = true
rust-version.workspace = true
readme = "README.md"

[[bin]]
name = "hjkl"
path = "src/main.rs"

[dependencies]
hjkl-buffer = "0.3"
hjkl-engine = "0.3"
hjkl-editor = "0.3"
hjkl-ratatui = "0.3"
hjkl-tree-sitter = "0.3"
hjkl-clipboard = "0.4"
hjkl-form = "0.3"
hjkl-picker = "0.3"
ratatui = "0.30"
crossterm = "0.29"
clap = { version = "4", features = ["derive"] }
anyhow = "1"
regex = "1"
git2 = { version = "0.20", default-features = false }
ignore = "0.4"
ec4rs = "1"

[dev-dependencies]
tempfile = "3"

[[example]]
name = "form_demo"
path = "examples/form_demo.rs"

[package.metadata.binstall]
pkg-url = "{ repo }/releases/download/v{ version }/{ name }-v{ version }-{ target }.{ archive-format }"
pkg-fmt = "tgz"

[package.metadata.binstall.overrides.x86_64-pc-windows-msvc]
pkg-fmt = "zip"

[package.metadata.deb]
maintainer = "mxaddict <mxaddict@kryptic.sh>"
copyright = "2026, mxaddict <mxaddict@kryptic.sh>"
license-file = ["../../LICENSE", "0"]
extended-description = """\
hjkl is a vim-modal terminal text editor built on the hjkl engine — \
a rope-backed buffer, vim FSM, motion grammar, ex commands, fuzzy \
picker, and tree-sitter highlighting, all running in your terminal."""
section = "editors"
priority = "optional"
assets = [
    ["target/release/hjkl", "/usr/bin/hjkl", "755"],
    ["README.md", "/usr/share/doc/hjkl/README.md", "644"],
    ["../../LICENSE", "/usr/share/doc/hjkl/copyright", "644"],
]

[package.metadata.generate-rpm]
assets = [
    { source = "target/release/hjkl", dest = "/usr/bin/hjkl", mode = "755" },
    { source = "README.md", dest = "/usr/share/doc/hjkl/README.md", mode = "644", doc = true },
    { source = "../../LICENSE", dest = "/usr/share/licenses/hjkl/LICENSE", mode = "644" },
]
# Group is largely ignored by modern dnf but keeps rpmlint quiet.
group = "Applications/Editors"
