AutoYADM commit: 2025-03-22 19:30:07

This commit is contained in:
Daniel Fichtinger 2025-03-22 19:30:07 -04:00
parent 8d27d3a376
commit 63023aa73d
2 changed files with 105 additions and 44 deletions

View file

@ -30,7 +30,7 @@ tabpad = " "
# tabpad = "·" # tabpad = "·"
[editor.cursor-shape] [editor.cursor-shape]
# insert = "bar" insert = "bar"
normal = "block" normal = "block"
# select = "underline" # select = "underline"
@ -69,9 +69,12 @@ S = "select_regex"
v = "split_selection" v = "split_selection"
s = "select_mode" s = "select_mode"
# reload file, reload lsp # reload lsp
C-r = ":lsp-restart" C-r = ":lsp-restart"
C-S-r = ":reload" # config file stuff
A-r = ":config-reload"
A-o = ":config-open"
A-w = ":config-open-workspace"
# Treesitter selections # Treesitter selections
# Left <-> Right: Sibling nodes # Left <-> Right: Sibling nodes

View file

@ -12,11 +12,17 @@
# In that case, television will expect the configuration file to be in: # In that case, television will expect the configuration file to be in:
# `$XDG_CONFIG_HOME/television/config.toml` # `$XDG_CONFIG_HOME/television/config.toml`
# #
# General settings
# ----------------------------------------------------------------------------
frame_rate = 60 # DEPRECATED: this option is no longer used
tick_rate = 50
[ui] [ui]
# Whether to use nerd font icons in the UI # Whether to use nerd font icons in the UI
# This option requires a font patched with Nerd Font in order to properly # This option requires a font patched with Nerd Font in order to properly
# display glyphs (see https://www.nerdfonts.com/ for more information) # display glyphs (see https://www.nerdfonts.com/ for more information)
use_nerd_font_icons = true use_nerd_font_icons = false
# How much space to allocate for the UI (in percentage of the screen) # How much space to allocate for the UI (in percentage of the screen)
# ┌───────────────────────────────────────┐ # ┌───────────────────────────────────────┐
# │ │ # │ │
@ -37,9 +43,15 @@ use_nerd_font_icons = true
ui_scale = 100 ui_scale = 100
# Whether to show the top help bar in the UI by default # Whether to show the top help bar in the UI by default
# This option can be toggled with the (default) `ctrl-g` keybinding # This option can be toggled with the (default) `ctrl-g` keybinding
show_help_bar = true show_help_bar = false
# Whether to show the preview panel in the UI by default
# This option can be toggled with the (default) `ctrl-o` keybinding
show_preview_panel = true
# Where to place the input bar in the UI (top or bottom) # Where to place the input bar in the UI (top or bottom)
input_bar_position = "bottom" input_bar_position = "top"
# DEPRECATED: title is now always displayed at the top as part of the border
# Where to place the preview title in the UI (top or bottom)
# preview_title_position = "top"
# The theme to use for the UI # The theme to use for the UI
# A list of builtin themes can be found in the `themes` directory of the television # A list of builtin themes can be found in the `themes` directory of the television
# repository. You may also create your own theme by creating a new file in a `themes` # repository. You may also create your own theme by creating a new file in a `themes`
@ -52,6 +64,7 @@ theme = "ashen"
# The theme to use for syntax highlighting. # The theme to use for syntax highlighting.
# Bulitin syntax highlighting uses the same syntax highlighting engine as bat. # Bulitin syntax highlighting uses the same syntax highlighting engine as bat.
# To get a list of your currently available themes, run `bat --list-themes` # To get a list of your currently available themes, run `bat --list-themes`
# Note that setting the BAT_THEME environment variable will override this setting.
theme = "Ashen" theme = "Ashen"
# Keybindings # Keybindings
@ -59,19 +72,23 @@ theme = "Ashen"
# #
# Channel mode # Channel mode
# ------------------------ # ------------------------
[keybindings.Channel] [keybindings]
# Quit the application # Quit the application
quit = "esc" quit = ["esc", "ctrl-c"]
# Scrolling through entries # Scrolling through entries
select_next_entry = "down" select_next_entry = ["down", "ctrl-n", "ctrl-j"]
select_prev_entry = "up" select_prev_entry = ["up", "ctrl-p", "ctrl-k"]
select_next_page = "pagedown" select_next_page = "pagedown"
select_prev_page = "pageup" select_prev_page = "pageup"
# Scrolling the preview pane # Scrolling the preview pane
scroll_preview_half_page_down = "ctrl-d" scroll_preview_half_page_down = "ctrl-d"
scroll_preview_half_page_up = "ctrl-u" scroll_preview_half_page_up = "ctrl-u"
# Select an entry # Add entry to selection and move to the next entry
select_entry = "enter" toggle_selection_down = "tab"
# Add entry to selection and move to the previous entry
toggle_selection_up = "backtab"
# Confirm selection
confirm_selection = "enter"
# Copy the selected entry to the clipboard # Copy the selected entry to the clipboard
copy_entry_to_clipboard = "ctrl-y" copy_entry_to_clipboard = "ctrl-y"
# Toggle the remote control mode # Toggle the remote control mode
@ -80,39 +97,80 @@ toggle_remote_control = "ctrl-r"
toggle_send_to_channel = "ctrl-s" toggle_send_to_channel = "ctrl-s"
# Toggle the help bar # Toggle the help bar
toggle_help = "ctrl-g" toggle_help = "ctrl-g"
# Toggle the preview panel
toggle_preview = "ctrl-o"
# Remote control mode # Shell integration
# ------------------------------- # ----------------------------------------------------------------------------
[keybindings.RemoteControl] #
# Quit the application # The shell integration feature allows you to use television as a picker for
quit = "esc" # your shell commands (as well as your shell history with <CTRL-R>).
# Scrolling through entries # E.g. typing `git checkout <CTRL-T>` will open television with a list of
select_next_entry = "down" # branches to choose from.
select_prev_entry = "up"
select_next_page = "pagedown" [shell_integration]
select_prev_page = "pageup" # This specifies the default fallback channel if no other channel is matched.
# Select an entry fallback_channel = "files"
select_entry = "enter"
# Toggle the remote control mode [shell_integration.channel_triggers]
toggle_remote_control = "ctrl-r" # Add your channel triggers here. Each key is a channel that will be triggered
# Toggle the help bar # by the corresponding commands.
toggle_help = "ctrl-g" # Example: say you want the following commands to trigger the following channels
# when pressing <CTRL-T>:
# `git checkout` should trigger the `git-branches` channel
# `ls` should trigger the `dirs` channel
# `cat` and `cp` should trigger the `files` channel
#
# You would add the following to your configuration file:
# ```
# [shell_integration.channel_triggers]
# "git-branches" = ["git checkout"]
# "dirs" = ["ls"]
# "files" = ["cat", "cp"]
# ```
"alias" = ["alias", "unalias"]
"env" = ["export", "unset"]
"dirs" = ["cd", "ls", "rmdir"]
"files" = [
"cat",
"less",
"head",
"tail",
"vim",
"nano",
"bat",
"cp",
"mv",
"rm",
"touch",
"chmod",
"chown",
"ln",
"tar",
"zip",
"unzip",
"gzip",
"gunzip",
"xz",
]
"git-diff" = ["git add", "git restore"]
"git-branch" = [
"git checkout",
"git branch",
"git merge",
"git rebase",
"git pull",
"git push",
]
"docker-images" = ["docker run"]
"git-repos" = ["nvim", "code", "hx", "git clone"]
# Send to channel mode [shell_integration.keybindings]
# -------------------------------- # controls which key binding should trigger tv
[keybindings.SendToChannel] # for shell autocomplete
# Quit the application "smart_autocomplete" = "ctrl-t"
quit = "esc" # controls which keybinding should trigger tv
# Scrolling through entries # for command history
select_next_entry = "down" "command_history" = "ctrl-r"
select_prev_entry = "up"
select_next_page = "pagedown"
select_prev_page = "pageup"
# Select an entry
select_entry = "enter"
# Toggle the send to channel mode
toggle_send_to_channel = "ctrl-s"
# Toggle the help bar
toggle_help = "ctrl-g"