From 44a884e3b6f226a820ceb62d7d916b82a53d257a Mon Sep 17 00:00:00 2001 From: samarth nagar Date: Tue, 14 Jul 2026 02:26:00 +0530 Subject: [PATCH] testing pr automationq --- .config/fish/scripts/change-tmux-pane.sh | 15 +++++++++++++++ AGENTS.md | 4 ++++ 2 files changed, 19 insertions(+) create mode 100755 .config/fish/scripts/change-tmux-pane.sh diff --git a/.config/fish/scripts/change-tmux-pane.sh b/.config/fish/scripts/change-tmux-pane.sh new file mode 100755 index 0000000..8eed556 --- /dev/null +++ b/.config/fish/scripts/change-tmux-pane.sh @@ -0,0 +1,15 @@ +#!/usr/bin/env bash +# Change tmux pane with fuzzy selection (bash equivalent) + +if [[ -z "${TMUX:-}" ]]; then + echo "Error: Not in a tmux session" >&2 + exit 1 +fi + +target=$(tmux list-panes -a -F '#{session_name}:#{window_index}.#{pane_index}.#{window_name}-#{pane_current_path}' \ + | fzf-tmux -p \ + | cut -d "." -f 1) + +if [[ -n "$target" ]]; then + tmux switch-client -t "$target" 2>/dev/null || true +fi diff --git a/AGENTS.md b/AGENTS.md index 194ee90..ea2b369 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -1,21 +1,25 @@ # AGENTS.md ## Scope + - This is a personal dotfiles repo, not a bootstrap or `stow` setup. - Review files first and symlink only the configs you intend to use. ## Layout + - `.config/fish/` is the main shell config; `config.fish` sources `scripts/non-interactive.fish`, `scripts/alias.fish`, `vim.fish`, and interactive-only helpers under `scripts/` and `completions/`. - `scripts/non-interactive.fish` defines `changeTmuxPane` and the `run` helper; `scripts/functions.fish` defines `mdc` and `te`. - `.config/opencode/` is its own npm package/config area; keep `package.json` and `package-lock.json` aligned when changing it. - `.config/nvim/` is a git submodule. ## Gotchas + - `config.fish` has machine-specific paths and assumptions: `/home/samarth`, `/home/linuxbrew/.linuxbrew`, `/opt/nvim`, `~/.deno/env`, and `$HOME/.turso/env`. - `config.fish` also runs `gsettings set org.gnome.desktop.input-sources xkb-options "['ctrl:nocaps']"` on shell startup. - Fish path setup is split between `config.fish`, `etc.config.fish`, and `paths.fish`; check all three before editing PATH behavior. - This repo expects a Nerd Font, especially JetBrains Mono Nerd Font, for prompt and terminal icons. ## Verification + - There is no repo-wide build/test harness in the root docs; verify changes by loading the affected shell or app config directly. - For Neovim changes, update the submodule separately if needed.