Skip to content
This repository has been archived by the owner on Feb 2, 2018. It is now read-only.
/ cmdlog-micro Public archive

An integrated terminal plugin for the Micro text-editor

License

Notifications You must be signed in to change notification settings

sum01/cmdlog-micro

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cmdlog-micro

This is a plugin for the Micro text-editor.
It lets you run terminal commmands without leaving your editor, printing output to a view inside the editor.

PS: This plugin is OS-agnostic, and the Unix-specific things are merely for example.

Installation

Micro version >= 1.3.5 is required

  1. Add https://raw.githubusercontent.com/sum01/cmdlog-micro/master/repo.json to your pluginrepos, like so...
  "pluginrepos": [
    "https://raw.githubusercontent.com/sum01/cmdlog-micro/master/repo.json"
  ],
  1. Run plugin install cmdlog and restart Micro.

Usage

The main command is runit. Using it looks like runit "git --version".

NOTE: Because of how Micro works, you must quote any input containing spaces.
But you don't have to quote a single command that has no args. So runit ls is still valid.

Keybinding

Put "Alt-l": "cmdlog.prompt_runit" (replace Alt-l with desired keybind) in your bindings.json.
This has the side-effect of not requiring to have to quote things, since the prompt will auto-quote your input.

Chaining Commands

Use the semi-colon ; to chain commands, like so...
runit "ls -l;git --version"

About

An integrated terminal plugin for the Micro text-editor

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages