Discussion
Loading...

Post

Log in
  • About
  • Code of conduct
  • Privacy
  • Users
  • Instances
  • About Bonfire
Michael Kohl ๐Ÿ‡ฆ๐Ÿ‡น๐Ÿ‡น๐Ÿ‡ญ
Michael Kohl ๐Ÿ‡ฆ๐Ÿ‡น๐Ÿ‡น๐Ÿ‡ญ
@citizen428@chaos.social  ยท  activity timestamp last month

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 ๐Ÿ‡ฆ๐Ÿ‡น๐Ÿ‡น๐Ÿ‡ญ
Michael Kohl ๐Ÿ‡ฆ๐Ÿ‡น๐Ÿ‡น๐Ÿ‡ญ
@citizen428@chaos.social replied  ยท  activity timestamp last month

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

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.40 no JS en
Automatic federation enabled
Log in
  • Explore
  • About
  • Members
  • Code of Conduct