Skip to content

Instantly share code, notes, and snippets.

  • Launch Services (does not use a login shell)
    • Finder
    • Kitty
      • bash #1 (login shell)
        • kak -s apple
      • bash #2 (login shell)
        • kak -s apple
          • connects to the Kakoune inside bash #1, and so you see the bash #1 environment (also a login shell)
      • bash #3 (login shell)
  • kitty @ new-window kak -s banana

Setting Up Games for Gargoyle

So, you've acquired a work of interactive fiction, and you'd like to play it in Gargoyle. Interactive fiction works have been published in many forms over the decades, some easy to use, some less so. The exact steps you need to follow depend on what format it's currently in,

declare-option completions example
set-option -add global completers option=example
set-option global example 1.1@1 hello||HELLO world||WORLD
@Screwtapello
Screwtapello / werder.c
Created June 21, 2020 12:03
Snoof Generator v1.1
/*********************************
*
* Snoof Generator v1.1
*
* Dave Olszewski 4/25/1997
* updated 8/12/1998
*
* A relatively inefficient way
* to make snoof
*
MAX_X = 320
MAX_Y = 240
POINT_A = {MAX_X/2, 0 } // top middle
POINT_B = {0, MAX_Y} // bottom left
POINT_C = {MAX_X, MAX_Y} // bottom right
// we greyscale, baby!
COLOR_A = 0
COLOR_B = 192
#!/usr/bin/python3
import collections
import dataclasses
import re
import subprocess
import sys
import typing
VERSIONED_DEP_RE = re.compile(r" \([^)]*\)")
declare-option -hidden range-specs fold_regions 0
add-highlighter global/fold-regions replace-ranges fold_regions
# range-specs option format:
#
# - a timestamp (like %val{timestamp})
# - zero or more "a.b,c.d|string", where:
# - a is the start line
# - b is the start byte in the start line
# - c is the end line