Tuesday, November 24, 2026

I Gave In

I wasn't going to do this, but it IS useful... so I relented.

I added the ability to save and restore layouts in my 'multiplexor' app. They store the state of your tabs and panes as well as the current path each pane is pointed to (that alone saves the user from tedium).

But there are some issues that are creeping up as I start using this app every day. Mainly it's in key combinations being swallowed. For example if I run my console based treeview notes editor in a pane, I'm unable to close dialogues in it. Escape does nothing, or exits me out of NORMAL mode. For some reason Vim is immune to this. I'll have to look at its source code and see how. Also the Ctrl+j that my local RPG LLM app uses to submit prompts just doesn't fire. For now I just added a button to the LLM app, but I'll need to get all of these keys issues fixed.

I'm considering adding a MOVE mode, so that tabs and panes can me swapped and rearranged. This MODES approach is absolutely amazing in a console app like this!

Monday, November 23, 2026

Ghostly Cursors

 My console 'multiplexer' app has an interesting issue.

As I'm typing random ghost cursors are showing up at random positions within the TUI.

It turns out this is an error that has been resolved in a later version of Fxtui. So I've updated my CMake file - and my build.sh script etc.


This appears to have done the trick!


I just tested this app in Windows and the Ftxui parts work great! However the terminals within each pane appear to be broken.

So this week my tasks is to get that piece fixed.

Sunday, November 22, 2026

Project Structure Documentation Key

 I've added a 'key' to the documentation from comments Python script:

structure

So:

//!_structure=/Project Structure
Generates the project structure from within the src directory.

//!_structure=/Project Structure=../
Generates the project structure relative to the src directory.

This lets you generate a project structure ASCII document that is built off of the files and folders in either your source code directory - or your project directory.

You can specify directories that it will ignore when doing this - it has default values of 'build' and 'build-windows'.

So far my testing of this looks good!

Saturday, November 21, 2026

Back to Basic-er

For a while I was using tmux for my workflow, creating panels for Neovim, Git repo work, file browsing etc. But at that time not being able to really persist sessions bothered me (I know the session will keep running and i can attach to it... until I reboot or similar). I tried to mimic that via shell scripts etc and that worked.... ok.

Then I found Herdr. And immediately fell in love.
I liked the layout, loved the persistent sessions, the key binding cheat sheet was short and sweet. I've been using vanilla Herdr ever since.

But you know.... I kind of like the simplicity and utter minimalism of out of the box tmux. So I think I might switch back for a while. And I think I'm going to kill the server whenever I'm done working, so that every time I use it I have to setup my workspace again. This will allow me to REALLY get the key bindings down - and I'll be VERY fast at them. So that soon, setting up any kind of layout I want would take mere seconds.

And since it's vanilla there's no need to worry about any special configurations or plug-in compatibility etc. And I think I'm going to build it from source.
Hmm I should dig into its source code. If I encounter any issues or similar maybe I could fix them myself.

More to come....

The Worst Code I've Ever Seen

A bit over a year ago I broke the only clipboard manager I liked at the time (mainly because it was a .jar file so I could run it at work). I downloaded its source code and tried to give it a dark mode. But it turns out, to do so, would basically be a complete rewrite.

I even had whatever AI I was using at the time attempt the dark mode update. It failed just like I had.

I just wanted a console looking, keyboard driven clipboard manager so I thought maybe I could get AI to code one in Rust. I actually wasn't really interested in coding such a thing I just wanted the app. It worked, I got most of the features I wanted - at least to start out with. BUT it tanked my CPU hard. Even when it wasn't visible, just monitoring the clipboard. After a week of yelling at AI:

"Bruh it's STILL hosing my CPU. Come on."

I decided maybe it was time to learn C++ in earnest... By having AI code a clipboard manager in the language then taking over it updates and maintenance myself.

Everything seemed great, it didn't make a dent iny CPU even after a week of it running non stop. However AI kept breaking the app just doing simple changes. Once it was ao bad I had to roll back a few commits. I realized I would need to dig into the code and see what was going on.

I was tweaking the behavior of one of the key bindings so I started with the if statements that drove key input processing.

AI had written the WORST code I had ever seen.

Windows/Linux checks were all over the place, making the code very difficult to read. The only way to determine what dialogue etc a key binding belonged to required tracing backward and forward to see what might be visible then what it might actually be doing.

So....

The first thing I did was write a Windows key code wrapper and a Linux one, so that I had ONE common set of key codes to work with, and they were intuitively named. Once that was there my key code ifs immediately got much cleaner.

Next I tracked down what each one belonged to and organized them, adding comments to make it even easier to see what groups went to what. Then I broke the implementation into methods. Now every check was an if and a method call. Very easy to read through all the key bindings.

After I made these changes the app never broke again. Yeah there have been bugs, but no full blown crashes or blank windows.

Well....

Until I tried to get AI to make a Wayland compatible piece.
I REALLY don't want to be forced into Wayland.

Document Generating Comments

Some of my projects start off as "I wish there was a a fully Vim-style XYZ...". So I reach out to my AI buddy and start helping him code such a thing for me. A couple of times the project ended up being REALLY cool. So I need to be able to work with the code. Ideally completely taking it over myself. However these are usually pretty ambitious projects so I need to do some learning - which is great!

To aid in this I thought about utilizing an existing 'code comments to documentation' solutions that are out there... BUT!

I have a stand alone HTML treeview driven notes app I built! And in looking at some of the solutions out there I feel like the comments are a lot. I don't want to spam my code with a crap ton of comments, just to get documentation. I have to be able to read the code.

So I put together a Python script and my own comment syntax for a few things (only tested against C++ so far, it it should be able to do other languages via config files). I've used it on the C++ app version of the stand alone HTML notes app and it worked amazingly well! It makes tracking down specific code etc much easier.

Some of its most exciting features:

Print Actual Code
Using
//>>
...
//<<
You can have the code between those written to the docs. So there's no maintaining those code snippets - they ARE the code.

/*
...
!_method
...
*/
This documents a method's footprint - inputs, output, etc -- AND where that method is called in other areas of the code!

/*
...
!_ctor
...
*/
This is like the method one but for constructors.

You can do custom entries in the help system and more. It does increase the amount of comments of course but - in using indent based folding in Vim - I find them fairly unobtrusive! In the future I'll develop this tool further and provide a link to the repo.

Multiplexer Time

I'm doing it. Gonna try to build a multiplexer. And of course it will be Vim style. At this point I'm not sure if I'll auto persist sessions etc, I'm actually leaning toward something more Tmux like, where it doesn't really do so. I'm still in the minimalist mood.

So far I am using two modes:

PLEX
This is where users manage and navigate panels, windows etc.

NORMAL
Kind of like Vim's INSERT mode, this is where console commands can be entered, apps can be launched in the pane's console, etc.

So far I have some bare bones functionality. The key bindings are driven by a config file and I think I'll do themes via config also. Once that's in place I'll do some code clean up and documentation.

This is being built in C++.

I'm Nervous About This - Apparently It's Just Me

 I just created a new project. It's going to be me hand coding a recreation of the first app I did as a paired programming project with ...