slap: cmdline Sublime Text

If you were looking for an easy-to-use Sublime Text-like editor for the terminal, you’re in luck. slap is a console based text editor with features (plus look & feel) closely resembling Sublime Text. As a matter of fact, it’s the stated goal of the project.

Features

  • Excellent mouse support (even over SSH)
  • A Sublime-like file sidebar
  • Double-click to select word, highlight other occurrences
  • Configurable Sublime-like keybindsĀ (Ctrl+S save, Ctrl+Z undo, etc.)
  • Copy/paste with OS clipboard support
  • Infinite undo/redo
  • Syntax highlighting for 100+ languages
  • Bracket matching
  • Auto-indentation
  • Heavily customizable via JS plugins
  • Many other features

Installation

No standard package installer for Ubuntu yet. Run the following to install from script:

$ sudo apt-get install xclip
$ curl -sL https://raw.githubusercontent.com/slap-editor/slap/master/install.sh | sh

Usage

Open a new file:

$ slap

Open multiple files:

$ slap file1 file2 file3

Open directory in browser:

$ slap mydir/

Settings go to ~/.slap/config:

[header.style]
bg = "red"

On GitHub: slap

Leave a Reply

Your email address will not be published. Required fields are marked *