Skip to content

Commit c0678bd

Browse files
committed
Update about_tmux
1 parent c15c796 commit c0678bd

File tree

1 file changed

+52
-12
lines changed

1 file changed

+52
-12
lines changed

doc/about_tmux.rst

Lines changed: 52 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -261,26 +261,66 @@ That's all it takes to launch yourself into a tmux session.
261261
this will rarely happen)
262262
- tmux has not be launched yet at all.
263263

264-
Tmux hotkeys
264+
.. _Prefix key:
265+
266+
The prefix key
267+
--------------
268+
269+
Tmux hot keys have to be pressed in a special way. **Read this
270+
carefully**, then try it yourself.
271+
272+
First, you press the *prefix* key. This is ``C-b`` by default.
273+
274+
Release. Then pause. For less than second. Then type what's next.
275+
276+
``C-b o`` means: Press ``Ctrl`` and ``b`` at the same time. Release,
277+
Then press ``o``.
278+
279+
**Remember, prefix + short cut!** ``C`` is ``Ctrl`` key.
280+
281+
Session Name
265282
------------
266283

267-
.. note::
284+
Renaming
285+
""""""""
286+
287+
**Command:** ``$ tmux rename-session <session-name>``
268288

269-
The **prefix** key is a known stumbling block for new tmux users,
270-
please pay attention!
289+
**Short cut** ``$``
271290

272-
Tmux hot keys have to be pressed in a special way. **Read this
273-
carefully**, then try it yourself.
291+
Window Name
292+
-----------
274293

275-
First, you press the *prefix* key. This is ``C-b`` by default.
294+
Rename
295+
""""""
276296

277-
Release. Then pause. For less than second. Then type what's next.
297+
**Command:** ``$ tmux rename-window <window-name>``
278298

279-
``C-b o`` means: Press ``Ctrl`` and ``b`` at the same time. Release,
280-
Then press ``o``.
299+
**Short cut** ``,``
281300

282301

283-
**Remember, prefix + short cut!**. ``C`` is ``Ctrl`` key.
302+
Splitting windows into panes
303+
----------------------------
304+
305+
Tmux windows can be split into multiple panes.
306+
307+
=================== ====================================================
308+
Short cut Action
309+
------------------- ----------------------------------------------------
310+
``%`` Split the current pane into two, left and right.
311+
``"`` Split the current pane into two, top and bottom.
312+
=================== ====================================================
313+
314+
315+
Reference
316+
=========
317+
318+
Short cuts
319+
----------
320+
321+
.. tip::
322+
323+
:ref:`Prefix key` is pressed before a short cut!
284324

285325
=================== ====================================================
286326
Short cut Action
@@ -340,13 +380,13 @@ Short cut Action
340380
marker.
341381
``C-Up, C-Down`` Resize the current pane in steps of one cell.
342382
``C-Left, C-Right``
343-
344383
``M-Up, M-Down`` Resize the current pane in steps of five cells.
345384
``M-Left, M-Right``
346385
=================== ====================================================
347386

348387
Source: tmux manpage.
349388

389+
350390
License
351391
-------
352392

0 commit comments

Comments
 (0)