Some keys were missing from the key-table (e.g. C-[hjkl]) as they were
set later in the config.
Fix by moving the script execution to the bottom of the config.
I sometimes forget that windows are in zoomed state as I was missing a
visual indicator. Underline the window names in the status line to fix
that.
TODO: Move added code bit into a variable to prevent redundancy. I was
not able to get it to be expanded, in contrast it would just
insert the text literally.
This reverts commit b4cbd08d3b.
I am not sure why I thought this was irrelevant. But when testing I did
not properly unset it or restart the server, so nothing changed when I
reloaded tmux.conf.
Conflicts:
.config/tmux/tmux.conf
I sometimes need the `<prefix>[hjkl]` bindings over `C-[hjkl]` (e.g. vim
insert mode). Then it is nice to have them repeatable when navigating to
a pane further away.
Only scroll 5 lines instead of a full page when entering copy-mode
through the wheel as a full page was too disorienting.
TODO: Pass `WheelUpPane` after entering copy-mode instead of redundantly
executing it's bound command.
Somehow neither of the following worked:
send -XM WheelUpPane
send -X WheelUpPane
`copy-mode -e` annoyed me, as it happened sometimes that I would hold
down `C-d` to scroll down, only to close the shell and pane when
reaching the bottom.
But in principal I do like the idea of it and missed the feature when
reaching the bottom by using the scroll wheel.
Change the `WheelDownPane` in copy-mode to exit when the bottom is
reached.
In tmux version 3.2 all style options were changed to string
options, making them support formats.[^1]
From that version on, use the pane-borders as indicator for the
{copy,sync}-mode instead of the prefix_highlight plugin.
Keep the pure style fallback, as Ubuntu 20.4 for example still only
ships with version 3.0a.
[^1]: https://github.com/tmux/tmux/commit/f03b61131b34079
- Invert the prefix_highlight colors so that it is less obtrusive.
- Use `brightred` for the background of the sync-mode indicator.
This way the prefix, copy-mode and sync-mode indicators are visually
differentiable.
Add a 'resize mode' that behaves similar to the one in my i3 config.
When pressing the binding `<prefix>r`, a new key-table is selected that
allows resizing with `hjkl` as well as choosing the different layouts
directly over the number row.
Do not exit automatically the copy-mode when reaching the bottom. This
was especially annoying/dangerous when holding `C-d` down to scroll to
the bottom.
Move all submodules that were under .config/ into .local/share/ (alias
XDG_DATA_HOME). I got convinced that they feel out of place in .config/.
Instead of updating the paths from which they are sourced (e.g.
`TMUX_PLUGIN_MANAGER_PATH` or `packpath`), keep a symlink in the old
location that points to the new one. This has the benefit that
everything related to one program remains mostly accessible from the
same place instead of spreading everything out.
I am still unsure if I really like the new location as I affiliate user
**data** more with something that has to be backed up as it is
non-recreatable. And moving them out of .config/ had the reasoning that
they are not my config files but rather data from the internet that
could be retrieved when deleting. But using XDG_CACHE_HOME seems
unreasonable as well.
We'll see.
Move the fzf-repo from ./local/bin/ to .local/share/.
Update all relative symlinks' (e.g. fzf) targets.
Wrap lines at 80 columns where appropriate and I had the energy to think
about how/where to wrap.
There are still lines longer than that, which I plan to wrap in the
future. But that is enough for now.
Enter copy-mode and scroll one page up directly with PageUp without the
need of the prefix. This binding exists per default already in the
prefix keytable.
[vim-tmux-navigator][1]:
> Seamless navigation between tmux panes and vim splits
Add the hybrid vim/tmux plugin `vim-tmux-navigator` to switch between
tmux panes and vim splits with `C-[hjkl]`.
Add vim-tmux-navigator as a submodule in tmux/plugins and create a
symlink from vim/pack/plugins/start.
Get rid of similar switching keymappings in the vim and tmux configs.
[1]: https://github.com/christoomey/vim-tmux-navigator