Helix save cursor position (manual workaround)

Script that we call from helix and it stores the current line (hxsaveline):
https://raw.githubusercontent.com/brontosaurusrex/bucentaur/refs/heads/master/.experiments/bin/hxsaveline

Entry in your config.toml that binds ctrl+w to save current line via hxsaveline script (under [keys.normal]):

"C-w" = ":sh hxsaveline %{buffer_name} %{cursor_line}"

Wrapper that will read the stored line and open helix (hxw):
https://raw.githubusercontent.com/brontosaurusrex/bucentaur/refs/heads/master/.experiments/bin/hxw

so you open your file as

hxw yourfile

and it should open with cursor on stored line.

How about just reading and displaying stored line inside helix, this script (hxloadline):
https://raw.githubusercontent.com/brontosaurusrex/bucentaur/refs/heads/master/.experiments/bin/hxloadline

and in your config.toml (under [keys.normal])

"C-g" = ":sh hxloadline %{buffer_name}"

will just print stored line number and do nothing else, but one can 18gg.

loadline-display

This is experimental workaround that will not work in all conditions and ‘should’ really be a core editor feature imho.

Pi5 updated to Trixie

image

and true colors in tmux, .tmux.conf, add:

set -g default-terminal "tmux-256color"
set-option -sa terminal-overrides ",xterm*:Tc"

Warning: Slopware ahead

(license: both svg images, penguin and the sign were under public domain, so this two are public domain as well. Consult your legal department in case of unknown or slippery obstacles/surfaces.)

Spread pager

Multicolumn pager (vibe-coded prototype in golang).
https://github.com/brontosaurusrex/spread

scrot

Game of life in golang

terminal

https://github.com/brontosaurusrex/gameOfLifeGolang

scrot

Deepseek spined this one from my old bash script. It is quite a lot faster.

web/wasm

https://brontosaurusrex.github.io/gameOfLifeGolang

h       = hide/show status
space   = play/pause
, and . = frame by frame inspection

Fzf preview mine

Mine

Something like that in .zshrc

# making FZF to look like my fancy note script
# Black & white - explicitly disable all colors
export FZF_DEFAULT_OPTS="--no-color --pointer='>' --color=fg:-1,bg:-1,hl:-1,fg+:-1,bg+:-1,hl+:-1,info:-1,prompt:-1,spinner:-1,pointer:-1,marker:-1,border:-1"

# CTRL-T command - recent files first
export FZF_CTRL_T_COMMAND='find . -type f -not -path "./.git/*" -printf "%T@ %P\n" 2>/dev/null | sort -nr | cut -d" " -f2-'
# or faster find with fdfind
# export FZF_CTRL_T_COMMAND='fdfind . --type f --hidden --exclude .git --strip-cwd-prefix -x stat -c "%Y %n" {} \; 2>/dev/null | sort -nr | cut -d" " -f2-'

# Preview configuration
export FZF_CTRL_T_OPTS="
  --no-color
  --prompt='file> '
  --pointer='>'
  --marker='*'
  --bind='tab:toggle'
  --preview='fzf_preview_mine {}'
  --preview-window='right:50%:wrap:noinfo'
  --height=80%
  --reverse"

And the preview script fzf_preview_mine. Should handle a subset of txt, epub, pdf, video, audio, image files as 2nd pane fzf preview. Needs sixels and some apps like: ffmpeg, mediainfo, mpv, chafa, imagemagick convert (psd), inkscape (svg), atool (preview archives) …

fzf_preview

tested with

Chafa version 1.18.2
fzf 0.60 (devel)

Newer might be fine.

Not mine

https://github.com/juanmitaboada/preview
https://github.com/semi710/fzf-preview/blob/master/fzf-preview

Many markdown files to single html

with pandoc

Export each into separated html

n c chess | pandoc -s -f markdown -t html5 -o tmp/01.htm 
n c jobs | pandoc -s -f markdown -t html5 -o tmp/02.htm  
n c pandoc | pandoc -s -f markdown -t html5 -o tmp/03.htm

cd tmp

merge into one

pandoc 01.htm 02.htm 03.htm -o all.htm -H style.css -V title="" --metadata=title=" "

There must be a simpler way. (This needs to be a standalone script if functionality is desired.)

with md2html

n c 12 | awk '
BEGIN { inmeta=0 }

# toggle frontmatter
/^---$/ {
    inmeta = !inmeta
    next
}

# inside frontmatter
inmeta {
    if ($1 == "title:") {
        $1=""
        sub(/^ +/, "", $0)
        print "# " $0
    }
    next
}

# normal content
{ print }
' | md2html -f --github --fpermissive-autolinks > md.htm

and then add some css to md5, like

<link rel="stylesheet" href="https://unpkg.com/sakura.css/css/sakura.css" media="screen" />
<link rel="stylesheet" href="https://unpkg.com/sakura.css/css/sakura-dark.css" media="screen and (prefers-color-scheme: dark)" />

<style>
    p, ul, li   { font-family: "Noto Serif", serif; font-size: large }
    a       { font-family: "Noto Serif", serif; font-size: large }
    pre     { font-size: large; border-radius: 12px; background-color: black;}
    h1      { text-align: center; font-family: 'Noto Sans', sans; font-size: xxx-large }
    h2, h3, h4      { font-family: "Noto Sans", sans; }
</style>

This ^ actually looks almost good.