tmux app for workflow
Workflow tmux app for workflow with layout management within the tmux instance.
The SplitV
and SplitH
layouts exported by workflow-layout-tiled
can be used
to create arbitrary tile layouts. They can contain a number of Apps or nested
layout components. The Apps used inside a Tmux
application must support
the terminal
wm. Some that do are: emacs
,
Vim
, Less
, and
Terminal
.
Checkout the flows/ folder for examples.
How to use
For now, the tmux app works only when running workflow to configure a single
terminal instance. This can be done by using the workflow-wm-terminal
package. A minimal config.js
example for how to use this is included below.
const join = ;const WorkflowResolverRelative = ;const WorkflowResolverAbsolute = ;const WorkflowLoaderBabel = ;const WorkflowParserArguments = ;const WorkflowTransformerApplyArgumentsToFields = ;const WorkflowLayout = ;const WorkflowWmTerminal = ; const config = presets: "flow" "react" "env" "targets": "node": "current" plugins: "transform-object-rest-spread" "transform-class-properties"; moduleexports = config = resolvers: path: process path: loader: config argumentParser: transformers: layout: wm: ;
The workflow
command will execute a kexec
command which replaces the
node process with the tmux
process.
The session name for the tmux
session is set by sessionName
parameter provided to the Tmux
node
in the flow
file.
// ... const flow = ;
Demo
Note you will need to run yarn build
from the root before executing the example.
Try it with: yarn TmuxExample