Discussion
Loading...

Post

  • About
  • Code of conduct
  • Privacy
  • Users
  • Instances
  • About Bonfire
Michael Kohl 🇦🇹🇹🇭
@citizen428@chaos.social  ·  activity timestamp 2 weeks ago

One underrated — at least IMO — tmux feature are popups. For example, I have `Ctrl-a g` mapped to open a `gitu` [1] popup with a 90% window size. Once I'm done, the popup will just automatically close and I'm back at my regular terminal window.

[1] gitu is a pretty close approximation of Emacs' Magit as a CLI tool: https://github.com/altsem/gitu

#tmux #git #magit #productivity #terminal

Screenshot of the gitu git interface as a tmux popup. gitu is showing one unstaged change to tmux.conf, a list of recent commits, and a keyboard shortcuts help menu at the bottom.
Screenshot of the gitu git interface as a tmux popup. gitu is showing one unstaged change to tmux.conf, a list of recent commits, and a keyboard shortcuts help menu at the bottom.
Screenshot of the gitu git interface as a tmux popup. gitu is showing one unstaged change to tmux.conf, a list of recent commits, and a keyboard shortcuts help menu at the bottom.
  • Copy link
  • Flag this post
  • Block
Michael Kohl 🇦🇹🇹🇭
@citizen428@chaos.social replied  ·  activity timestamp 2 weeks ago

When I have to use VSCode for some reason or another, I trigger `gitu` via `Alt-x g` in a terminal editor, split to the right.

A screenshot of the VSCode key binding:

  {
    "key": "alt+x g",
    "command": "runCommands",
    "args": {
      "commands": [
        "workbench.action.splitEditorRight",
        "workbench.action.createTerminalEditor",
        {
          "command": "workbench.action.terminal.sendSequence",
          "args": { "text": "gitu\n" }
        }
      ]
    }
  }
A screenshot of the VSCode key binding: { "key": "alt+x g", "command": "runCommands", "args": { "commands": [ "workbench.action.splitEditorRight", "workbench.action.createTerminalEditor", { "command": "workbench.action.terminal.sendSequence", "args": { "text": "gitu\n" } } ] } }
A screenshot of the VSCode key binding: { "key": "alt+x g", "command": "runCommands", "args": { "commands": [ "workbench.action.splitEditorRight", "workbench.action.createTerminalEditor", { "command": "workbench.action.terminal.sendSequence", "args": { "text": "gitu\n" } } ] } }
  • Copy link
  • Flag this comment
  • Block
Log in

bonfire.cafe

A space for Bonfire maintainers and contributors to communicate

bonfire.cafe: About · Code of conduct · Privacy · Users · Instances
Bonfire social · 1.0.1-alpha.8 no JS en
Automatic federation enabled
  • Explore
  • About
  • Members
  • Code of Conduct
Home
Login