workflow-app-iterm

2.0.0 • Public • Published

iTerm app for workflow

Workflow iTerm app for workflow with layout management within the iTerm2 instance.

The SplitV and SplitH layouts from the workflow-layout-tiled module can be used to create arbitrary tile layouts. They can contain a number of Apps or nested layout components. The width of each split is not possible to specify, it will be the size of the contained area divide by the number of children.

Example

import React from 'react';
import { render, Workspace, requireComponent } from 'workflow-react';
 
import { ITerm } from requireComponent("workflow-app-iterm");
 
const { SplitV, SplitH } = requireComponent("workflow-layout-tiled");
const { Vim } = requireComponent("workflow-app-vim");
const { Terminal } = requireComponent("workflow-app-terminal");
const { Emacs } = requireComponent("workflow-app-emacs");;
 
export const flow = render(
  <Workspace name={'workflow-iterm-split'}>
    <ITerm>
      <SplitH>
        <SplitV>
          <Vim file={__filename} />
          <Terminal cwd={"~"} cmd={"ls"} />
        </SplitV>
        <SplitV>
          <Emacs file={"~/dev/workflow/Readme.md"} />
          <Terminal cwd={"~"} cmd={"ls"} />
        </SplitV>
      </SplitH>
    </ITerm>
  </Workspace>,
);

Demo

Try it with: yarn ItermSplit

Demo

Package Sidebar

Install

npm i workflow-app-iterm

Weekly Downloads

4

Version

2.0.0

License

MIT

Unpacked Size

6.26 kB

Total Files

5

Last publish

Collaborators

  • havardh