Skip to content

A Zellij plugin which enables you to send commands to be automatically executed in your helix editor in the same session

Notifications You must be signed in to change notification settings

yves-biener/zjhelix-interaction

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Zellij - Helix interaction

I created this plugin to allow any application to communicate with a running helix application, i.e. to open a file for me, enter a macro, etc. As helix is not server based you cannot pipe commands to open for example a file. Instead zellij is used to send corresponding keystrokes to simulate user interaction in helix. With this you can essentially send any abritrary command to helix (or any application you want).

The plugin makes heavy use of pipe messages to create corresponding actions which shall be executed. Hence the message needs the following parameter:

  • name: name of the pane which shall receive the command
  • payload: string of the user input that shall be simulated

The plugin will try to find the named pane, switch to it and write the payload followed by a carriage return.

Example

zellij pipe --name Helix -- "oHello World!"

The example will write "Hello World!" to your active running Helix session (given that you are already in Normal Mode).

About

A Zellij plugin which enables you to send commands to be automatically executed in your helix editor in the same session

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 100.0%