Skip to content

Instantly share code, notes, and snippets.

@JAffleck
JAffleck / gist:b443db7aeac72574d624f5a58c9c60ae
Created November 22, 2021 21:17
Vim Title Case something that was Embiggend
"Match Groups (1st letter), (rest of letter characters (as many in a row as possible))
"\u = Uppercase next character of 1st match
"\L = Lowercase rest of word
%s/\v<(\w)(\w{1,})/\u\1\L\2/g
@JAffleck
JAffleck / printme.js
Created April 18, 2024 14:24
PrintMe - Image remover, and table row/cell background clearer to save ink
// To use this bookmarklet just urlencode this, and remove the comment lines, create a new bookmark and copy this into the url
javascript:(function(){
//remove image elems
for (let i= document.images.length; i-->0;)
document.images[i].parentNode.removeChild(document.images[i]);
// make TR and TD elems background white
let tableElems = document.querySelectorAll('tr, td');
for(let i=0; i<tableElems.length;i++)
tableElems[i].style.backgroundColor='white';})();

Ghostty Keyboard Shortcuts

Default keyboard shortcuts for Ghostty terminal emulator. Platform-specific differences are noted where applicable.

Window Management

Action Windows/Linux macOS
New window Ctrl+Shift+N Cmd+N
Close window Alt+F4 Cmd+Shift+W