gpakosz / .tmux

🇫🇷 Oh my tmux! My self-contained, pretty & versatile tmux configuration made with ❤️
MIT License
21.54k stars 3.33k forks source link

Suggestion for keybinds #733

Closed dr3mro closed 3 months ago

dr3mro commented 3 months ago

Hello, FIrst thanks for your great har work second

Why not create a keybinding for that in .tmux.conf?

These two settings let you create/kill a new session when pressing Prefix S (Shift+s) or Prefix K (Shift+k) respectively:

bind S command-prompt -p "New Session:" "new-session -A -s '%%'" bind K confirm kill-session

Prefix Shift+s will open a command prompt in the status line, asking for a new session name. It will either create a new session with that name or attach to an already existing session by that name.

gpakosz commented 3 months ago

Hello @dr3mro 👋

Why not create a keybinding for that in .tmux.conf?

These two settings let you create/kill a new session when pressing Prefix S (Shift+s) or Prefix K (Shift+k) respectively:

bind S command-prompt -p "New Session:" "new-session -A -s '%%'" bind K confirm kill-session

Well, first there's tmux_conf_new_session_prompt=true.

And then, what bindings look ideal to ones doesn't look ideal to others. As such I now refrain myself as much as possible from adding bindings or changing bindings. Why kill-session but not kill-window? I suggest that you define your own bindings adjustments in your .local customization file

dr3mro commented 3 months ago

👍

On Sun, Mar 24, 2024, 8:34 PM Grégory Pakosz @.***> wrote:

Hello @dr3mro https://github.com/dr3mro 👋

Why not create a keybinding for that in .tmux.conf?

These two settings let you create/kill a new session when pressing Prefix S (Shift+s) or Prefix K (Shift+k) respectively:

bind S command-prompt -p "New Session:" "new-session -A -s '%%'" bind K confirm kill-session

Well, first there's tmux_conf_new_session_prompt=true.

And then, what bindings look ideal to ones doesn't look ideal to others. As such I now refrain myself as much as possible from adding bindings or changing bindings. Why kill-session but not kill-window? I suggest that you define your own bindings in your .local customization file

— Reply to this email directly, view it on GitHub https://github.com/gpakosz/.tmux/issues/733#issuecomment-2016896259, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJQHCNUCQW6F5CJDPS37T3YZ4MCDAVCNFSM6AAAAABFF2272GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMJWHA4TMMRVHE . You are receiving this because you were mentioned.Message ID: <gpakosz/. @.***>