Skip to content

Commit d2c723e

Browse files
committed
release: v0.2.0
1 parent fcf9e10 commit d2c723e

File tree

6 files changed

+70
-86
lines changed

6 files changed

+70
-86
lines changed

Cargo.lock

Lines changed: 49 additions & 55 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "lazyjj"
33
description = "TUI for Jujutsu/jj"
4-
version = "0.1.4"
4+
version = "0.2.0"
55
edition = "2021"
66
license = "Apache-2.0"
77
readme = "README.md"
@@ -18,7 +18,7 @@ pkg-url = "{ repo }/releases/download/v{ version }/lazyjj-v{ version }-{ target
1818
ansi-to-tui = "4.0.1"
1919
anyhow = "1.0.86"
2020
chrono = "0.4.38"
21-
clap = { version = "4.5.4", features = ["derive"] }
21+
clap = { version = "4.5.7", features = ["derive"] }
2222
crossterm = "0.27.0"
2323
insta = { version = "1.39.0", features = ["filters"] }
2424
itertools = "0.13.0"
@@ -27,10 +27,10 @@ ratatui = { version = "0.26.3", features = [
2727
"serde",
2828
"unstable-rendered-line-info",
2929
] }
30-
regex = "1.10.4"
31-
serde = { version = "1.0.202", features = ["derive"] }
30+
regex = "1.10.5"
31+
serde = { version = "1.0.203", features = ["derive"] }
3232
tempdir = "0.3.7"
3333
thiserror = "1.0.61"
34-
toml = "0.8.13"
34+
toml = "0.8.14"
3535
tui-textarea = "0.4.0"
36-
tui_confirm_dialog = "0.2.0"
36+
tui_confirm_dialog = "0.2.1"

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ https://github.com/Cretezy/lazyjj/assets/2672503/b5e6b4f1-ebdb-448f-af9e-361e86f
2727
- Track branches with `t`, untrack branches with `T`
2828
- Command log: View every command lazyjj executes
2929
- Config: Configure lazyjj with your jj config
30+
- Help: See all key mappings with `h`/`?`
3031

3132
## Setup
3233

@@ -59,6 +60,8 @@ To use a different repository: `lazyjj --path ~/path/to/repo`
5960

6061
## Key mappings
6162

63+
See all key mappings for the current tab with `h` or `?`.
64+
6265
### Basic navigation
6366

6467
- Quit with `q`

src/app.rs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,15 @@ impl App<'_> {
107107
&& key.kind == event::KeyEventKind::Press
108108
{
109109
// Close
110-
if key.code == KeyCode::Char('q') || key.code == KeyCode::Esc {
110+
if matches!(
111+
key.code,
112+
KeyCode::Char('y')
113+
| KeyCode::Char('n')
114+
| KeyCode::Char('o')
115+
| KeyCode::Enter
116+
| KeyCode::Char('q')
117+
| KeyCode::Esc
118+
) {
111119
self.popup = None
112120
}
113121
}

src/ui/command_log_tab.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,6 @@ impl Component for CommandLogTag {
266266
"Ctrl+f/Ctrl+b".to_owned(),
267267
"scroll down/up by page".to_owned(),
268268
),
269-
("w".to_owned(), "toggle diff format".to_owned()),
270269
("W".to_owned(), "toggle wrapping".to_owned()),
271270
],
272271
)))),

0 commit comments

Comments
 (0)