Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7126138d46 |
Generated
+1
-1
@@ -1503,7 +1503,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "worklane"
|
name = "worklane"
|
||||||
version = "0.27.0"
|
version = "0.27.1"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"anyhow",
|
"anyhow",
|
||||||
"assert_cmd",
|
"assert_cmd",
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "worklane"
|
name = "worklane"
|
||||||
version = "0.27.0"
|
version = "0.27.1"
|
||||||
edition = "2024"
|
edition = "2024"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
|
|||||||
+5
-1
@@ -248,7 +248,11 @@ fn run_tui(paths: &[std::path::PathBuf], start: &std::path::Path) -> Result<()>
|
|||||||
// The way in to the campaign picker, like `/` is to the search prompt: from
|
// The way in to the campaign picker, like `/` is to the search prompt: from
|
||||||
// the next keypress on `picker_key` above has the keyboard. Free of every
|
// the next keypress on `picker_key` above has the keyboard. Free of every
|
||||||
// other binding, and `ctrl-c` is matched above this so quitting still wins.
|
// other binding, and `ctrl-c` is matched above this so quitting still wins.
|
||||||
KeyCode::Char('c') => board.open_picker(),
|
KeyCode::Char('c') => board.open_picker(tui::PickerKind::Campaign, screen),
|
||||||
|
// The other axis the board is cut along, and the one `ls --tag` has
|
||||||
|
// answered since 2f3796e. Free of every other binding: `tab` is its own
|
||||||
|
// key code, not this letter.
|
||||||
|
KeyCode::Char('t') => board.open_picker(tui::PickerKind::Tag, screen),
|
||||||
_ => {}
|
_ => {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+10
@@ -163,6 +163,16 @@ impl TagIndex {
|
|||||||
self.tags.keys().map(String::as_str)
|
self.tags.keys().map(String::as_str)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// What a tag means, whole, or `None` for a tag the file does not declare.
|
||||||
|
///
|
||||||
|
/// The raw section, paragraphs and all, where [`Self::summary`] is the one line a
|
||||||
|
/// listing has room for. `Some("")` is a tag declared with nothing said about it, which
|
||||||
|
/// the caller has to tell apart from `None`: the board draws the two in different
|
||||||
|
/// sections.
|
||||||
|
pub fn annotation(&self, tag: &str) -> Option<&str> {
|
||||||
|
self.tags.get(tag).map(String::as_str)
|
||||||
|
}
|
||||||
|
|
||||||
/// The opening line of what a tag means, or `None` for a tag the file does not declare.
|
/// The opening line of what a tag means, or `None` for a tag the file does not declare.
|
||||||
///
|
///
|
||||||
/// The cut to one line lives here rather than on the parse, the way
|
/// The cut to one line lives here rather than on the parse, the way
|
||||||
|
|||||||
+997
-156
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user