Commit graph

8 commits

Author SHA1 Message Date
hobe
da2d2102fc feat(zellij): add force-delete function with all-session completion
Add `df` function (`zjdf`/`zdf`) that runs `zellij delete-session --force`,
which can delete running sessions without killing them first (zellij ≥0.44).
Completes against all sessions, unlike `d` which only shows exited ones.
2026-03-25 13:53:06 +09:00
hobe
f1db1812cb perf(zellij): use --short flag for session name completion
Use `list-sessions --short --no-formatting` (zellij ≥0.44) to extract
session names directly, falling back to sed parsing for older versions.
2026-03-25 13:44:36 +09:00
hobe
0f061a2d0d feat(zellij): add help function to list registered aliases
Type `zjh` (or `zh` with z prefix) to print a quick-reference table.
Only aliases and functions that were actually registered are shown,
so conflicts with other plugins are reflected accurately.
2026-03-25 13:44:14 +09:00
hobe
fe46305436 feat(zellij): add detach and switch-session shortcuts
- Add `ad` alias for `zellij action detach`
- Add `as` function for `zellij action switch-session` with session completion
2026-03-25 13:43:41 +09:00
Hobeom
15fbdaab58 refactor(zellij): separate root alias from sub-command prefix
Split _zellij_root_alias and _zellij_short_prefix so that when z is
taken (e.g. by zoxide), only the root alias falls back to zj while
sub-commands keep the shorter z prefix (zl, za, zk, zd, …).

Every alias and function now checks for conflicts before defining,
and compdef targets are collected dynamically to avoid binding
completions to names that were never created.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-09 22:59:45 +09:00
Hobeom
e564461958 feat(zellij): add session functions, convenience commands, and smart completions
- Use functions for attach/delete/kill to enable session-aware completions
- Add zr, zrf, ze convenience functions with conflict detection
- Improve z prefix collision check (aliases, functions, commands)
- Cache completions synchronously on first load, background on updates
- Update README to document new functions and completion behavior

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-09 22:57:30 +09:00
Hobeom
6b292d300e fix(zellij): change default prefix from z to zj
Avoid conflicts with popular directory jumpers (zoxide, z.lua, etc.)
by defaulting to "zj". Users can opt into "z" via ZSH_ZELLIJ_PREFIX_Z.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-09 21:00:38 +09:00
Hobeom
c733b0af53 feat(zellij): add zellij plugin with aliases and completions
Add a new plugin for the zellij terminal multiplexer providing:
- 9 shorthand aliases with dynamic prefix (z or zj to avoid conflicts)
- Background completion caching using the same pattern as the gh plugin

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-09 20:28:55 +09:00