mirror of
https://github.com/prdlk/dotfiles.git
synced 2026-11-02 19:32:43 +00:00
feat(cable): add extensive television cable channel configurations and related files
This commit is contained in:
1 parent
7c786f9349
commit
e9a7fd1fde
72 files changed
+2101
No files matched your search
@@ -0,0 +1,31 @@
|
||||
[metadata]
|
||||
name = "git-repos"
|
||||
requirements = ["fd", "git"]
|
||||
description = """
|
||||
A channel to select from git repositories on your local machine.
|
||||
|
||||
This channel uses `fd` to find directories that contain a `.git` subdirectory, and then allows you to preview the git log of the selected repository.
|
||||
"""
|
||||
|
||||
[source]
|
||||
# this is a macos version of the command. While perfectly usable on linux, you may want to tweak it a bit.
|
||||
command = "fd -g .git -HL -t d -d 10 --prune ~ -E 'Library' -E 'Application Support' --exec dirname '{}'"
|
||||
display = "{split:/:-1}"
|
||||
|
||||
[preview]
|
||||
command = "cd '{}'; git log -n 200 --pretty=medium --all --graph --color"
|
||||
|
||||
[keybindings]
|
||||
enter = "actions:cd"
|
||||
ctrl-e = "actions:edit"
|
||||
|
||||
[actions.cd]
|
||||
description = "Open a new shell in the selected repository"
|
||||
command = "cd {} && $SHELL"
|
||||
mode = "execute"
|
||||
|
||||
[actions.edit]
|
||||
description = "Open the repository in editor"
|
||||
command = "${EDITOR:-vim} {}"
|
||||
shell = "bash"
|
||||
mode = "execute"
|
||||
Reference in new issue
Block a user