Skip to content

atm1020/TUILaunch

Repository files navigation

TUILaunch

Build Version

Downloads

Template ToDo list

TUILaunch is helps to launching TUI applications, such as lazygit, within IntelliJ's built-in terminal. Every saved application launch command is assigned an auto generated Action, which seamlessly integrate with IdeaVim or work with the built-in keymap.

The plugin is inspired by Neovim's ToggleTerm plugin custom terminal feature.

Features

You can open the settings and add/edit commands : Settings/Preferences > Tools > TUILauncher

Create Action for TUI app

Add an installed application to the table, and after saving it, an action with the format TUILauncher.{name} is added to the IDE Actions.

You can use the ActionId in IdeaVim:

nmap <Space>gg <Action>(TUILauncher.lazygit)

Or simply use the built-in keymap feature. AddApp

After you close the TUI app, the terminal session automatically ends because the executed command always follows this format: ${command};exit.

ToolWindowType

Configure which tool window mode is used to open your TUI app.

AddApp

Override Modes

When opening a terminal tool window, the current tool window type is temporarily overridden, and the terminal opens in the selected mode.

Available modes:

  • Dock to IDE window edge – Attaches the terminal to the edge of the IDE window.
  • Float as a separate window – Opens the terminal in a floating window.
  • Slide over the editor area – Displays the terminal as an overlay on the editor.
  • Show in a detached window – Opens the terminal in a fully separate window.

After the focus is lost, the tool window type automatically reverts to its default state.

Does not override the mode:

  • Use current window mode – Keeps the existing tool window mode unchanged.

Limitation

  • Terminal sessions handled by this plugin are automatically closed after focus is lost.
  • Only one TUI application can be launched at a time. If you open a new app while another TUI application is running, the previous one is automatically closed.

Installation

  • Using the IDE built-in plugin system:

    Settings/Preferences > Plugins > Marketplace > Search for "TUILaunch" > Install

  • Using JetBrains Marketplace:

    Go to JetBrains Marketplace and install it by clicking the Install to ... button in case your IDE is running.

    You can also download the latest release from JetBrains Marketplace and install it manually using Settings/Preferences > Plugins > ⚙️ > Install plugin from disk...

  • Manually:

    Download the latest release and install it manually using Settings/Preferences > Plugins > ⚙️ > Install plugin from disk...


Plugin based on the IntelliJ Platform Plugin Template.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages