about summary refs log tree commit diff
path: root/scripts/chat.tmux.conf
blob: 3489a190e4d6dfc9a7a01c221ac995efdb7a47a5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# use `tmux -L chat -f ./chat.tmux.conf attach-session' (without any other
# options or parameters) to access this session group in its own tmux server,
# not interfering with existing servers/sessions/configurations

new-session -t chat

# catgirl(1) puts windows at the top
set-option -g	-- status-position	top

# intuitive navigation
set-option -g	-- mode-keys	vi
set-option -g	-- mouse	on

# indicate new messages
set-option -g	-- monitor-activity	on
set-option -g	-- monitor-bell	on

# hardcode names during window creation
set-option -g	-- automatic-rename	off
set-option -g	-- allow-rename	off
set-option -g	-- set-titles	off
set-option -g	-- renumber-windows	on
# for the F1 binding, make hotkeys match window numbers
set-option -g	-- base-index	1


# clients exit on network errors, restart them automatically
# (use `kill-pane'/`C-b x' to destroy windows)
set-option -g	-- remain-on-exit	on
set-hook -g	-- pane-died	respawn-pane


# disarm ^C to avoid accidentially losing logs
bind-key -n -N 'confirm INTR key'	-- C-c	\
	confirm-before -p 'Send ^C? (y/N)'	-- 'send-keys	-- C-c'

# one-click version of default `C-b w' (shows preview windows)
bind-key -n -N 'pick chat network'	-- F1	choose-tree -Z

# catgirl(1) might run in `-R'/`restrict'ed mode, i.e. `/help' is disabled
bind-key -n -N 'read catgirl help'	-- F2	\
	new-window -S -n help	-- man -s 1	-- catgirl

# intuitive refresh, just don't spam it ;-)
bind-key -n -N 'reconnect network'	-- F5	\
	confirm-before -p 'reconnect network? (y/N)'	-- 'respawn-pane -k'

# immersive mode ;-)
bind-key -n -N 'toggle fullscreen'	-- F11	set status


# this configuration is idempotent, i.e. reloading it only changes settings
# and never duplicates already existing windows
bind-key -N 'reload configuration'	-- R	{
	source-file -F	-- '#{source_files}'
	display-message	-- 'configuration reloaded'
}


## do not double-quote commands to avoid running through "sh -c"

# IRC
new-window -d -S -n hackint	-- catgirl	-- defaults hackint
new-window -d -S -n efnet	-- catgirl	-- defaults efnet
022-03-13 17:33:16 -0400'>2022-03-13Document using -S to connect over IPv4 or IPv6June McEnroe 2022-03-09Always refresh the screen with ^LChristian Kellermann This patch adds an explicit wrefresh call. Under some conditions just flagging the window for redraw does not trigger a redraw and the user has no other means to force redrawing of a window. Without this patch resizing the window would sometimes result in an empty chat window with no way to redraw it. Tested under uxterm and st on OpenBSD. 2022-03-05Update STANDARDS section authors, titles and URLsJune McEnroe 2022-03-02Show own nick on /nick without paramsJune McEnroe 2022-02-26Specify commands which depend on capsJune McEnroe Currently only /setname. 2022-02-26Only add available commands to completeJune McEnroe 2022-02-26Factor out commandAvailableJune McEnroe 2022-02-23Give examples of "general events" 2.1June McEnroe 2022-02-23Add missing unistd.h include in input.cJune McEnroe 2022-02-22Document the interfaceJune McEnroe 2022-02-20Clean up unimplemented editing mode stuffJune McEnroe 2022-02-20Save input buffer contentsJune McEnroe 2022-02-20Share a cut buffer between all edit buffersJune McEnroe 2022-02-20Assert return values in edit testsJune McEnroe 2022-02-20Move mbs out of struct Edit, use a global bufferJune McEnroe This saves 4K in the edit buffers, not to mention all the heap allocations for the separate mbs buffers! There might be a way to be more clever about capacities, but I don't think it's worth it. 2022-02-20Clear edit buffer before running commandJune McEnroe Otherwise a command that switches windows will update the status line while the edit buffer still has input "pending", showing an indicator. 2022-02-20Show indicator in status when window has pending inputJune McEnroe 2022-02-20Use separate edit buffers for each IDJune McEnroe 2022-02-20Make sure new cap is actually larger than new lengthJune McEnroe 2022-02-20Remove unused mbs.len field from struct EditJune McEnroe 2022-02-19Remove unneeded includes in ui.cJune McEnroe 2022-02-19Reimplement tab completeJune McEnroe 2022-02-19Handle errors from editFn, etc.June McEnroe 2022-02-19Reimplement text macrosJune McEnroe 2022-02-19Factor out input handling to input.cJune McEnroe 2022-02-19Factor out window management to window.cJune McEnroe 2022-02-19Enable -Wmissing-prototypesJune McEnroe In other words, warn when a function is missing static. I don't see why this isn't in -Wextra. 2022-02-19Fix edit.[ch] license notice additional permissionsJune McEnroe 2022-02-19Run line editing testsJune McEnroe I know, it feels wrong. 2022-02-18Implement new line editing "library"June McEnroe Losing tab complete and text macros, for now. This new implementation works on an instance of a struct and does not interact with the rest of catgirl, making it possible to copy into another project. Unlike existing line editing libraries, this one is entirely abstract and can be rendered externally. My goal with this library is to be able to implement vi mode. Since it operates on struct instances rather than globals, it might also be possible to give catgirl separate line editing buffers for each window, which would be a nice UX improvement. 2022-02-18Simplify cursor positioning in inputJune McEnroe Do some extra work by adding the portion before the cursor to the input window twice, but simplify the interaction with the split point. This fixes the awkward behaviour when moving the cursor across colour codes where the code would be partially interpreted up to the cursor. 2022-02-18Fix M-f orderingJune McEnroe 2022-02-12Move sandman build to scripts/MakefileJune McEnroe 2022-02-12Use compat_readpassphrase.c on LinuxJune McEnroe 2022-02-12Copy RPP defines from oconfigureJune McEnroe