Skip to content

Commit cc578aa

Browse files
committed
Add initial pwd to history
1 parent 50e8185 commit cc578aa

File tree

5 files changed

+14
-12
lines changed

5 files changed

+14
-12
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ path = './benches/criterion.rs'
88

99
[package]
1010
name = 'xplr'
11-
version = '0.21.4'
11+
version = '0.21.5'
1212
authors = ['Arijit Basu <[email protected]>']
1313
edition = '2021'
1414
description = 'A hackable, minimal, fast TUI file explorer'
@@ -90,3 +90,5 @@ panic = 'abort'
9090
strip = true
9191

9292
[features]
93+
94+

docs/en/src/upgrade-guide.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ compatibility.
4545

4646
### Instructions
4747

48-
#### [v0.20.2][48] -> [v0.21.4][49]
48+
#### [v0.20.2][48] -> [v0.21.5][49]
4949

5050
- Some plugins might stop rendering colors. Wait for them to update.
5151
- Rename `xplr.config.general.sort_and_filter_ui.search_identifier` to
@@ -521,5 +521,5 @@ Else do the following:
521521
[46]: https://github.com/sayanarijit/xplr/releases/tag/v0.18.0
522522
[47]: https://github.com/sayanarijit/xplr/releases/tag/v0.19.4
523523
[48]: https://github.com/sayanarijit/xplr/releases/tag/v0.20.2
524-
[49]: https://github.com/sayanarijit/xplr/releases/tag/v0.21.4
524+
[49]: https://github.com/sayanarijit/xplr/releases/tag/v0.21.5
525525
[50]: https://github.com/lotabout/skim#search-syntax

src/app.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,7 @@ impl App {
420420
config,
421421
vroot,
422422
initial_vroot,
423-
pwd,
423+
pwd: pwd.clone(),
424424
initial_pwd,
425425
directory_buffer: Default::default(),
426426
last_focus: Default::default(),
@@ -435,7 +435,7 @@ impl App {
435435
explorer_config,
436436
logs: Default::default(),
437437
logs_hidden: Default::default(),
438-
history: Default::default(),
438+
history: History::default().push(format!("{pwd}/")),
439439
last_modes: Default::default(),
440440
hostname,
441441
hooks,

src/lua/mod.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -160,24 +160,24 @@ mod tests {
160160
assert!(check_version(VERSION, "foo path").is_ok());
161161

162162
// Current release if OK
163-
assert!(check_version("0.21.4", "foo path").is_ok());
163+
assert!(check_version("0.21.5", "foo path").is_ok());
164164

165165
// Prev major release is ERR
166166
// - Not yet
167167

168168
// Prev minor release is ERR (Change when we get to v1)
169-
assert!(check_version("0.20.4", "foo path").is_err());
169+
assert!(check_version("0.20.5", "foo path").is_err());
170170

171171
// Prev bugfix release is OK
172-
assert!(check_version("0.21.3", "foo path").is_ok());
172+
assert!(check_version("0.21.4", "foo path").is_ok());
173173

174174
// Next major release is ERR
175-
assert!(check_version("1.20.4", "foo path").is_err());
175+
assert!(check_version("1.20.5", "foo path").is_err());
176176

177177
// Next minor release is ERR
178-
assert!(check_version("0.22.4", "foo path").is_err());
178+
assert!(check_version("0.22.5", "foo path").is_err());
179179

180180
// Next bugfix release is ERR (Change when we get to v1)
181-
assert!(check_version("0.21.5", "foo path").is_err());
181+
assert!(check_version("0.21.6", "foo path").is_err());
182182
}
183183
}

0 commit comments

Comments
 (0)