npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

tabby-backslash-newline

v1.0.4

Published

Tabby plugin that sends backslash newline (\\n) for line continuation

Readme

Tabby Backslash Newline Plugin

A Tabby terminal plugin that enables line continuation in terminal sessions by adding Shift+Enter hotkey to send backslash newline (\\\n) sequences. Perfect for writing multi-line shell commands, scripts, and command-line operations.

Features

  • Line Continuation: Press Shift+Enter to send \\\n (space + backslash + newline) for continuing commands across multiple lines
  • Shell Scripting Support: Perfect for writing long commands, complex pipes, and multi-line shell scripts
  • Multi-tab Support: Works across all terminal tabs and split views
  • Smart Terminal Detection: Automatically finds the active terminal instance, including in split views
  • Cross-platform: Uses system-appropriate line endings (Windows/Unix compatible)

Installation

Via Tabby Plugin Manager (Recommended)

  1. Open Tabby
  2. Go to SettingsPlugins
  3. Search for "Backslash Newline"
  4. Click Install

Manual Installation

npm install -g tabby-backslash-newline

Development Installation

  1. Clone this repository
  2. Install dependencies: npm install
  3. Build the plugin: npx tsc
  4. Copy the dist folder to your Tabby plugins directory

Development

Build Commands

# Compile TypeScript to JavaScript
npx tsc

# Watch mode for development
npx tsc --watch

Project Structure

src/
├── index.ts          # Main plugin entry point
└── ...
dist/                 # Compiled output
package.json          # Dependencies and build config
tsconfig.json         # TypeScript configuration

How It Works

The plugin sends a space + backslash + newline sequence ( \\\n) when you press Shift+Enter, which is the standard shell syntax for line continuation. This allows you to:

  • Break long commands across multiple lines for better readability
  • Write complex shell scripts interactively
  • Continue pipe chains and command sequences
  • Maintain proper shell escaping and formatting

Example usage:

# Instead of this long one-liner:
find /path -name "*.js" -type f -exec grep -l "function" {} \; | xargs wc -l

# Write it across multiple lines with Shift+Enter:
find /path -name "*.js" -type f \\
  -exec grep -l "function" {} \; \\
  | xargs wc -l

Technical Implementation

  1. HotkeyProvider: Registers the shift-enter-newline hotkey with Tabby
  2. ShiftEnterHandler: Handles the hotkey event and sends the continuation sequence
  3. Terminal Detection: Finds the active terminal, including special handling for split views

Use Cases

  • Long Commands: Break complex commands with many options across multiple lines
  • Shell Scripts: Write and test multi-line scripts interactively
  • Pipe Chains: Create readable command pipelines
  • Configuration: Multi-line environment variable definitions and exports

Requirements

  • Tabby Terminal v1.0.0 or higher
  • Node.js and npm for building

License

MIT License