Commit graph

13 commits

Author SHA1 Message Date
d91adbfc13
tmux: Fix session chooser without fzf
If no fzf is installed, session chooser will now be the old manual
session name input. `tm session-name` will attach or create a session of
the same name, whether fzf is installed or not.

If invoked without argument, and fzf is installed will show a list of
sessions to choose from. If fzf is missing, will create new session
based on current directory.

`tl` has been changed to display the old non-interactive list if no fzf
exists. If fzf has been found however, it points to `tm` instead, since
invoking it without arguments fulfills the same function.
2020-07-23 15:29:05 +02:00
0487042d7e
tmux: Add simple workout tracking session
Hard-codes paths to open, used for quick opening of training tracking.
To be run with `tm sport.session`
2020-07-23 12:29:27 +02:00
7895b1c052
[tmux] Add git diff switching staged to dot session
The git log display will now depend on current staged status.

If no files have been staged, the panel will display recent git logs
with branches and short titles, as before.

If files have been staged however, the panel will switch to display
staged changes however. This is to facilitate a better overview of
changes during the staging and committing process; since often one wants
to see the staged changes next to the commit that is being written.
2020-05-28 11:05:49 +02:00
64236ada0a
[tmux] Fix notes session directory
Fixed opening correct directory for tmux notes session, vim working
window.

Update xinit comments to be more reflective of programs intention.
Remove wal autostart xresources setup, it has been replaced by styler
(and at some point goxbam).
2020-05-05 09:21:38 +02:00
167744e8c8
[tmux] Fix true color support, especially in nvim
Tmux needs Tc set to enable truecolor support. At the same time, the
file was setting the same variable multiple times and in illogical ways.
So it now gets the term env var from the actual variable and simply adds
truecolor support.

Also removed cursor switching support for nvim, since tmux seems to
support it natively now. If it does not, this needs to be reinstituted.

Following discussions here:
https://www.reddit.com/r/neovim/comments/825dj7/the_endless_litany_of_tmux_and_nvim_color_problems/
and here:
https://stackoverflow.com/questions/41783367/tmux-tmux-true-color-is-not-working-properly
2020-02-20 20:46:41 +01:00
d5b7646611
Add make recursive dir alias, fix tmux alias
Fixes tmux session function alias and renames function to be a bit more
descriptive.

Added basic `md` alias to recursively `mkdir` directories.
2020-02-16 14:21:42 +01:00
348a167390 Fix tmux vim navigator movement
Fixes tmux xdg-compliance (and, more importantly, Tmux Plugin Manager's)
by setting the environment variable TMUX_PLUGIN_MANAGER_PATH to follow
xdg specifications. Tmux, due to not being xdg-compliant, needs to be
aliased to start with the `-f` option pointing into the configuration
directory.

Fixes tmux vim nagigator's controls being overwritten by other control
schemes in tmux.
2020-02-06 20:49:15 +01:00
f5eddfdab2 Fix tmux_attach_start unit tests 2020-02-04 15:23:47 +01:00
65ad7f77ee Add tmux_attach_start script zsh completions
Will autocomplete with currently open tmux sessions.
2020-02-04 10:00:05 +01:00
92376839a4 Add tmux fzf session chooser
Added tmux session chooser. Aliased to `tm`, calling `tmux_attach_start`
(the original tm script).

When called without arguments displays a fzf list of currently running
tmux sessions, with a preview to their respective open panes. A session
can be chosen in fzf which tmux will attach itself to. When creating a
query in fzf which does not have a valid target and confirming, tmux
will automatically create that session and attach itself to it.

When called with an argument, tmux will attach itself or create a
session of the same name. If called with the name of a session file, as
before, tmux will automatically execute that session file and attach
itself to it.
2020-02-02 23:44:23 +01:00
7ebcce8e82 Add global gitconfig, improve glog display
Added global git config file, following XDG specifications (putting it
under `XDG_CONFIG_HOME/git/config`).

Adding a small improvement to default dot session for tmux, so that its
log watcher now shows all refs and remote refs.
2020-02-01 11:15:22 +01:00
7b3b41ea97 Fix tmux dot session to work with stow dotfiles 2020-01-03 10:10:58 +01:00
d34cecb27e Switch to GNU stow 2019-12-29 23:12:13 +01:00