Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ key.
| `Space`, click `●` | Stage or unstage the file |
| `a` / `u` | Stage everything / unstage everything |
| `c` | Write the commit message (drafted for you when something is staged) |
| `g` | Draft a commit message with Claude |
| `Tab` | Draft a commit message with Claude |
| `p` / `P` / `f` | Push / pull `--ff-only` / fetch (it also fetches every 3 minutes) |
| `t` | Stage the files from the agents' latest turn (with Axel) |
| `q` | Quit |
Expand Down
13 changes: 6 additions & 7 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
//! Shows the branch and its sync state, the changed files (marking the ones
//! an Axel thread's agents changed), and recent commits. Click a file or
//! press Enter for its diff, Space to stage it, `c` to write a commit message
//! (`g`, or Tab while writing, asks Claude to draft or complete it), and
//! (Tab asks Claude to draft or complete it), and
//! `p`/`P`/`f` to push, pull and fetch.

mod axel;
Expand Down Expand Up @@ -421,7 +421,7 @@ impl App {
}
KeyCode::Char('t') => self.stage_turn(),
KeyCode::Char('c') | KeyCode::Char('i') => self.enter_commit(),
KeyCode::Char('g') | KeyCode::Tab => self.draft(),
KeyCode::Tab => self.draft(),
KeyCode::Char('p') => self.sync("push", false),
KeyCode::Char('P') => self.sync("pull", false),
KeyCode::Char('f') => self.sync("fetch", false),
Expand Down Expand Up @@ -482,7 +482,6 @@ impl App {
KeyCode::PageUp | KeyCode::Char('b') => d.scroll = d.scroll.saturating_sub(page),
KeyCode::Home => d.scroll = 0,
KeyCode::End | KeyCode::Char('G') => d.scroll = max,
KeyCode::Char('g') => self.draft(),
KeyCode::Char('e') => {
self.context = (self.context + 1) % CONTEXTS.len();
self.open_diff(self.sel);
Expand Down Expand Up @@ -800,7 +799,7 @@ impl App {
let what = if self.msg.is_empty() { "drafting with claude…" } else { "completing with claude…" };
vec![Line::from(vec![accent(format!("{} ", self.spinner(since))), gray(what)])]
} else if self.msg.is_empty() {
let hint = if active { "commit message · Tab drafts it" } else { "c to commit · g drafts a message" };
let hint = if active { "commit message · Tab drafts it" } else { "c to commit · Tab drafts a message" };
let mut line = vec![prompt];
if active {
line.push(accent("▏"));
Expand Down Expand Up @@ -844,7 +843,7 @@ impl App {
}
hints(&keys, area.width as usize)
} else {
let mut keys = vec![("spc", "stage"), ("⏎", "diff"), ("c", "commit"), ("g", "draft")];
let mut keys = vec![("spc", "stage"), ("⏎", "diff"), ("c", "commit"), ("Tab", "draft")];
if self.axel.is_some() {
keys.push(("t", "stage turn"));
}
Expand All @@ -868,7 +867,7 @@ impl App {
("a u", "stage all / unstage all"),
("t", "stage the agents' last turn"),
("c", "write the commit message"),
("g Tab", "draft or complete it with claude"),
("Tab", "draft or complete it with claude"),
("p P", "push / pull --ff-only"),
("f", "fetch (also every 3m)"),
("q", "quit"),
Expand Down Expand Up @@ -938,7 +937,7 @@ impl App {

let line = flash.unwrap_or_else(|| {
hints(
&[("esc", "back"), ("s", "stage"), ("n", "next file"), ("e", "context"), ("g", "draft")],
&[("esc", "back"), ("s", "stage"), ("n", "next file"), ("e", "context")],
footer.width as usize,
)
});
Expand Down