tvl-depot/tools
Vincent Ambo 4b4ec86114 fix(emacs-pkgs/term-switcher): switch buffers by object, not name
The terminal switcher uses ivy to select buffers from a list of
buffer *names*, however this can cause weird situations if, for
example, two `vterm` sessions are in the same folder and buffer name
uniquification is active.

This commit implements a corrected solution, which constructs an
association list of buffer names to their actual buffer object, and
retrieves the buffer object from that list after the user has made
their selection. This way, changes in buffer names during terminal
selection do not lead to confusing results.

Change-Id: I3ab3d6b715b32606cf771dabc31d9d4507c8b856
Reviewed-on: https://cl.tvl.fyi/c/depot/+/9145
Tested-by: BuildkiteCI
Reviewed-by: tazjin <tazjin@tvl.su>
2023-08-23 20:22:25 +00:00
..
checks fix(tools/checks): Minor typo fix 2022-06-07 10:46:15 +00:00
cheddar chore(tools/cheddar): bump to syntect 5.0 2023-01-07 08:02:37 +00:00
emacs-pkgs fix(emacs-pkgs/term-switcher): switch buffers by object, not name 2023-08-23 20:22:25 +00:00
magrathea chore(3p/sources): Bump channels & overlays 2023-08-08 20:33:01 +00:00
nixery fix(nixery): allow references to packages starting with numbers 2023-04-29 11:49:02 +00:00
nsfv-setup style: format entire depot with nixpkgs-fmt 2022-01-31 16:11:53 +00:00
releases fix(views/kit): communicate :unsign in the tvl-kit URL directly 2023-03-31 08:46:01 +00:00
rust-crates-advisory fix(ops/pipelines): explicitly set contexts for annotations 2022-12-28 16:35:20 +00:00
crfo-approve.nix feat(tools/crfo-approve): Add tool for CRFO depot-interventions 2022-02-07 19:12:31 +00:00
depot-deps.nix feat(tools/git-r): git subcommand to display r/numbers for commits 2023-07-05 12:37:09 +00:00
depotfmt.nix chore(3p/sources): Bump channels & overlays (OpenSSL edition) 2022-11-03 15:10:39 +00:00
eprintf.nix style: format entire depot with nixpkgs-fmt 2022-01-31 16:11:53 +00:00
fetch-depot-inbox.nix feat(tools/fetch-depot-inbox): wrapper script to fetch depot maildir 2022-12-28 08:17:45 +00:00
gerrit-cli.nix fix(gerrit-cli): don't output the path to SSH if it's on the path 2020-06-21 23:49:30 +00:00
gerrit-update.nix feat(gerrit-update): Add helper script for updating Gerrit schema 2020-11-29 11:50:58 +00:00
git-r.nix feat(tools/git-r): git subcommand to display r/numbers for commits 2023-07-05 12:37:09 +00:00
hash-password.nix test(tools/hash-password): ensure that script can execute correctly 2022-05-27 23:48:37 +00:00
perf-flamegraph.nix fix(tools/perf-flamegraph): Get rid of most 'unknown's 2020-07-16 00:37:29 +00:00