aboutsummaryrefslogtreecommitdiff
path: root/dotfiles/common
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-02-14 01:48:59 -0600
committerCraig Jennings <c@cjennings.net>2026-02-14 01:48:59 -0600
commite22337097d1a8a8a1c13d50f02562b9d5d116759 (patch)
tree6c8009ee23bb030336072057db7f3597832f61c1 /dotfiles/common
parentd523239c984affb85a8bed4b2c3b19380667ff2d (diff)
downloadarchsetup-e22337097d1a8a8a1c13d50f02562b9d5d116759.tar.gz
archsetup-e22337097d1a8a8a1c13d50f02562b9d5d116759.zip
feat(aix): focus newly opened project window after sort
Move select-window after sort_windows so the first new project gets focus via stable window ID. Also restructure todo.org into flat task list (V2MOM preserved in docs/v2mom.org).
Diffstat (limited to 'dotfiles/common')
-rwxr-xr-xdotfiles/common/.local/bin/aix6
1 files changed, 2 insertions, 4 deletions
diff --git a/dotfiles/common/.local/bin/aix b/dotfiles/common/.local/bin/aix
index 27c1638..b9d9e69 100755
--- a/dotfiles/common/.local/bin/aix
+++ b/dotfiles/common/.local/bin/aix
@@ -132,12 +132,11 @@ if tmux has-session -t "$SESSION" 2>/dev/null; then
wid=$(create_window "$dir" "$name")
[ -z "$first_wid" ] && first_wid="$wid"
done
-
- tmux select-window -t "$first_wid"
fi
fi
sort_windows
+ [ -n "$first_wid" ] && tmux select-window -t "$first_wid"
attach_session
exit 0
fi
@@ -166,6 +165,5 @@ done
# Sort windows and select first project
sort_windows
-base_idx=$(tmux show-option -gv base-index 2>/dev/null || echo 0)
-tmux select-window -t "$SESSION:$base_idx"
+tmux select-window -t "$first_wid"
attach_session