This is an automated email from the ASF dual-hosted git repository.
dstandish pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/main by this push:
new 0cfa5627a75 Add basic tmux for dummies section (#44660)
0cfa5627a75 is described below
commit 0cfa5627a75aa25f1c909f3239edd627131aa432
Author: Daniel Standish <[email protected]>
AuthorDate: Wed Dec 4 14:37:50 2024 -0800
Add basic tmux for dummies section (#44660)
---
dev/breeze/doc/02_customizing.rst | 34 ++++++++++++++++++++++++++++++++++
1 file changed, 34 insertions(+)
diff --git a/dev/breeze/doc/02_customizing.rst
b/dev/breeze/doc/02_customizing.rst
index 291314abfc3..009b5a25149 100644
--- a/dev/breeze/doc/02_customizing.rst
+++ b/dev/breeze/doc/02_customizing.rst
@@ -61,6 +61,40 @@ so you can change it at any place, and run
inside container, to enable modified tmux configurations.
+Tmux tldr
+~~~~~~~~~
+
+In case you, like some Airflow core devs, are a tmux dummy, here are some tmux
config entries
+that you may find helpful.
+
+.. code-block::
+
+ # if you like vi mode instead of emacs
+ set-window-option -g mode-keys vi
+
+ # will not clear the selection immediately
+ bind-key -T copy-mode-vi MouseDragEnd1Pane send-keys -X
copy-selection-no-clear
+
+ # make it so ctrl+shift+arrow moves the focused pane
+ bind -T root C-S-Left select-pane -L
+ bind -T root C-S-Right select-pane -R
+ bind -T root C-S-Up select-pane -U
+ bind -T root C-S-Down select-pane -D
+
+Some helpful commands:
+
+ - ``ctrl-b + z``: zoom into selected pane
+ - ``ctrl-b + [``: enter copy mode
+
+To copy an entire pane:
+ - select the pane
+ - enter copy mode: ``ctrl-b + [``
+ - go to start: ``g``
+ - begin selection: ``space``
+ - extend selection to end: ``G``
+ - copy and clear selection: ``enter``
+
+
Additional tools in Breeze container
------------------------------------