commit 6046f762a6e65d219878e33705750b3a118acc69
parent 564d06e08d7738cc40c9ef79c6de022cb178b613
Author: regexghost <dev@regexghost.com>
Date: Thu, 30 Jul 2026 10:41:42 +0100
nano system copy blog post and added to coding article
Diffstat:
3 files changed, 20 insertions(+), 1 deletion(-)
diff --git a/.gitignore b/.gitignore
@@ -1 +1 @@
-ideas.md
+/ideas.md
diff --git a/blog/2026/july/nano-system-copy.md b/blog/2026/july/nano-system-copy.md
@@ -0,0 +1,11 @@
++++
+title = "nano System Copy"
+datePublished = 2026-07-30
+template = "blog-page.html"
++++
+
+I wrote a patch for the GNU nano text editor that allows you to copy highlighted text to the system clipboard. This was one of the features I missed after switching from micro to nano.
+
+[The patch can be seen here](https://codeberg.org/regexghost/patches/src/branch/main/nano-copy-system.diff) and can be applied with my `otherPrograms.sh` script in [my dotfiles](https://codeberg.org/regexghost/regexghost-dotfiles).
+
+In theory I could have used an `st` patch to achieve this, but it would be sub-optimal as it might copy line numbers, and not handle newlines properly.
diff --git a/coding/index.md b/coding/index.md
@@ -32,3 +32,11 @@ Gozer is a minimalist static site generator. I forked it to add a couple of new
As well as some minor tweaks
[Fork on GitHub](https://github.com/regexghost/gozer)
+
+## Notable Patches
+
+### nano System Copy
+
+Patch for GNU nano, that adds a new binding, `systemcopy`, which copies the marked/highlighted text to the system clipboard via xclip
+
+[Patch](https://codeberg.org/regexghost/patches/src/branch/main/nano-copy-system.diff)