From 402763b41b46edf9982215c8d82fd594b8f8cb9f Mon Sep 17 00:00:00 2001 From: Oliver Blanthorn Date: Tue, 28 May 2019 17:08:13 +0100 Subject: [PATCH] Fix #1303: make no_mouse_mode boring --- src/content/toys.ts | 4 ++++ src/excmds.ts | 12 +++++++++++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/src/content/toys.ts b/src/content/toys.ts index 86c7c2a4..0be96b1a 100644 --- a/src/content/toys.ts +++ b/src/content/toys.ts @@ -16,6 +16,10 @@ export function jack_in() { rain(chinese, colour) } +export function no_mouse() { + rain([" "], "#FFF", 0) // No characters, unused colour code, no darkening +} + export let snow = () => rain(["❄"], "#FFF", 0.15) export function rain(characters: string[], colour, darkening = 0.05) { diff --git a/src/excmds.ts b/src/excmds.ts index db929b09..fc7d54d0 100644 --- a/src/excmds.ts +++ b/src/excmds.ts @@ -1378,11 +1378,21 @@ export async function credits(excmd?: string) { * Suggested usage: `autocmd DocLoad .* no_mouse_mode` * * "There is no mouse". + */ +//#content +export function no_mouse_mode() { + toys.no_mouse() +} + +/** + * Matrix variant of [[no_mouse_mode]] + * + * "There is no mouse". * * Coincidentally added to Tridactyl at the same time as we reached 1337 stars on GitHub. */ //#content -export function no_mouse_mode() { +export function neo_mouse_mode() { toys.jack_in() }