mirror of
https://github.com/sebaschi/dotfiles.git
synced 2026-07-01 02:50:36 +02:00
23 lines
457 B
TOML
23 lines
457 B
TOML
[metadata]
|
|
name = "cargo-commands"
|
|
description = "List available cargo commands and extensions"
|
|
requirements = ["cargo"]
|
|
|
|
[source]
|
|
command = "cargo --list 2>/dev/null | tail -n +2 | awk '{print $1}'"
|
|
|
|
[preview]
|
|
command = "cargo {} --help 2>/dev/null | head -50"
|
|
|
|
[ui]
|
|
layout = "portrait"
|
|
preview_panel = { size = 60 }
|
|
|
|
[keybindings]
|
|
enter = "actions:run"
|
|
|
|
[actions.run]
|
|
description = "Run the selected cargo command"
|
|
command = "cargo '{}'"
|
|
mode = "execute"
|