kajji 0.8.0 → 0.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +40 -6
  2. package/package.json +6 -6
package/README.md CHANGED
@@ -22,7 +22,7 @@ Kajji is my attempt to bring the UX of lazygit to jj, while also aiming for top-
22
22
 
23
23
  ```bash
24
24
  # recommended (standalone binary, no dependencies)
25
- curl -fsSL https://raw.githubusercontent.com/eliaskc/kajji/main/install.sh | bash
25
+ curl -fsSL https://kajji.sh/install.sh | bash
26
26
 
27
27
  # or via package manager
28
28
  npm install -g kajji
@@ -79,6 +79,8 @@ bun dev
79
79
  - [x] Recent repository switcher
80
80
  - [x] Automatic update notifications
81
81
  - [x] Revset filtering and fuzzy search
82
+ - [x] JSONC config with live reload and schema autocomplete
83
+ - [x] Open files in editor from file view (`e`/`E`)
82
84
  - [ ] Multi-select for batch operations
83
85
 
84
86
  ## Usage
@@ -108,6 +110,35 @@ kajji comment delete -r @ --file src/App.tsx
108
110
  kajji comment delete -r @ --all -y
109
111
  ```
110
112
 
113
+ ### Configuration
114
+
115
+ Kajji reads JSONC config from `~/.config/kajji/config.json` (comments and trailing commas are supported).
116
+
117
+ - Open it from the command palette (`?`) with `open config`
118
+ - Changes from `open config` are reloaded when you return to kajji
119
+ - Schema autocomplete is available via `$schema` in the generated config
120
+
121
+ ```jsonc
122
+ {
123
+ "$schema": "https://kajji.sh/schema.json",
124
+ "ui": {
125
+ "theme": "lazygit", // "lazygit" | "opencode"
126
+ "showFileTree": true
127
+ },
128
+ "diff": {
129
+ "layout": "auto", // "auto" | "unified" | "split"
130
+ "autoSwitchWidth": 120, // only used when layout is "auto"
131
+ "wrap": true,
132
+ "useJjFormatter": false // use jj's ui.diff-formatter output in Detail
133
+ },
134
+ "whatsNewDisabled": false
135
+ }
136
+ ```
137
+
138
+ Not yet wired from config ([#16](https://github.com/eliaskc/kajji/issues/16)):
139
+
140
+ - keybind overrides
141
+
111
142
  ### Keybindings
112
143
 
113
144
  | Key | Action |
@@ -118,9 +149,10 @@ kajji comment delete -r @ --all -y
118
149
  | `Escape` | Back / close modal |
119
150
  | `ctrl+x` | Toggle focus mode (normal / diff) |
120
151
  | `ctrl+o` | Open recent repository |
121
- | `o` | Open commit/PR on GitHub |
122
- | `w` | Toggle line wrapping in diff |
123
- | `v` | Toggle split / unified diff |
152
+ | `o` / `O` | Open commit/PR on GitHub (prompt / direct) |
153
+ | `-` | Toggle tree/list (Files) or jj formatter (Detail) |
154
+ | `w` | Toggle line wrapping in diff (built-in renderer) |
155
+ | `v` | Toggle split / unified diff (built-in renderer) |
124
156
  | `ctrl+p` | Show commands (or `?`) |
125
157
  | `q` | Quit |
126
158
 
@@ -136,8 +168,10 @@ kajji comment delete -r @ --all -y
136
168
  | `r` | Rebase |
137
169
  | `S` | Split |
138
170
  | `u` / `U` | Undo / redo |
139
- | `f` / `F` | Git fetch / fetch all |
140
- | `p` / `P` | Git push / push all |
171
+ | `f` | Git fetch |
172
+ | `F` | Git fetch options |
173
+ | `p` | Git push |
174
+ | `P` | Git push options |
141
175
 
142
176
  ### Bookmarks
143
177
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kajji",
3
- "version": "0.8.0",
3
+ "version": "0.10.0",
4
4
  "description": "A terminal UI for Jujutsu: the rudder for your jj",
5
5
  "bin": {
6
6
  "kajji": "./bin/kajji"
@@ -9,10 +9,10 @@
9
9
  "postinstall": "node ./script/postinstall.mjs"
10
10
  },
11
11
  "optionalDependencies": {
12
- "kajji-darwin-arm64": "0.8.0",
13
- "kajji-darwin-x64": "0.8.0",
14
- "kajji-linux-x64": "0.8.0",
15
- "kajji-linux-arm64": "0.8.0"
12
+ "kajji-darwin-arm64": "0.10.0",
13
+ "kajji-darwin-x64": "0.10.0",
14
+ "kajji-linux-x64": "0.10.0",
15
+ "kajji-linux-arm64": "0.10.0"
16
16
  },
17
17
  "repository": {
18
18
  "type": "git",
@@ -33,4 +33,4 @@
33
33
  ],
34
34
  "author": "eliaskc",
35
35
  "license": "MIT"
36
- }
36
+ }