I’ve made some progress this week at enabling text selection in nomad, but I’ve realised that clipboard access is actually a bit tricky.
Each platform has slightly different requirements when it comes to supporting the clipboard. It’s possible to run different programs depending on the platform in order to copy/paste something from/to the clipboard:
macOS
# copy text
echo 'hello' | pbcopy
# paste text
pbpaste
Linux
# copy text
echo 'hello' | xclip
# paste text
xclip -o
I can’t be bothered right to do this bit now, but at least I’ve made a small amount of progress.