feat: add more aliases

This commit is contained in:
swaits committed 2025-07-27 20:26:19 -04:00
1 parent 456b3b526a
commit b6502f0393
2 files changed
+12 -10

No files matched your search

+6 -5
View File
@@ -51,12 +51,13 @@ mise use -g cargo:ldr
### Command aliases
- `add` can also be used as `prepend`
- `ls` can also be used as `list`
- `up` can also be used as `prioritize`
- `do` can also be used as `done`, `finish`, or `check`
- `add` can also be used as `a` or `prepend`
- `ls` can also be used as `l` or `list`
- `up` can also be used as `u` or `prioritize`
- `do` can also be used as `d`, `done`, `finish`, or `check`
- `rm` can also be used as `remove`, `delete`, `destroy`, or `forget`
- `scan` can also be used as `review`
- `scan` can also be used as `s`, `r`, or `review`
- `edit` can also be used as `e`
## License
+6 -5
View File
@@ -28,13 +28,13 @@ struct Cli {
#[derive(Subcommand)]
enum Commands {
/// Add a new item at the top
#[command(alias = "prepend")]
#[command(aliases = ["a", "prepend"])]
Add {
/// The text to add (e.g., "Read: Book XYZ")
text: String,
},
/// List the top N items (default 5)
#[command(alias = "list")]
#[command(aliases = ["l", "list"])]
Ls {
#[arg(short = 'n', long = "num", default_value_t = 5)]
num: usize,
@@ -45,13 +45,13 @@ enum Commands {
filter: Option<String>,
},
/// Raise the priority of items (move toward top)
#[command(alias = "prioritize")]
#[command(aliases = ["u", "prioritize"])]
Up {
/// Item numbers to prioritize (from "ldr ls")
numbers: Vec<usize>,
},
/// Archive completed items
#[command(aliases = ["done", "finish", "check"])]
#[command(aliases = ["d", "done", "finish", "check"])]
Do {
/// Item numbers to archive (from "ldr ls")
numbers: Vec<usize>,
@@ -63,9 +63,10 @@ enum Commands {
numbers: Vec<usize>,
},
/// Scan and review items interactively, from top to bottom
#[command(alias = "review")]
#[command(aliases = ["s", "r", "review"])]
Scan,
/// Edit items in your $EDITOR
#[command(alias = "e")]
Edit,
}