logoalt Hacker News

messhyesterday at 3:47 PM2 repliesview on HN

Anchor based editing requires injecting new anchors to the context, and dirac does so via a diff. So how is this more efficient (token-wise) than search and replace?? Even at a single token per hash. Also, code is read more than written so these just add up. I experimented once with stable anchors, albeit longer than a single token, and found it a downgrade.

My conclusion is that the efficiency dirac sees comes mainly from showing file skeleton by default


Replies

hedgehogyesterday at 6:06 PM

I'm not sure one way or another but I've been using a related tool called Tilth by another poster here. It doesn't do anchor-based editing, but it does do syntax-aware search and will e.g. report the line range for function definitions, provide file outlines with line numbers on a file name match, etc.

https://github.com/jahala/tilth

show 2 replies
gchamonliveyesterday at 7:24 PM

> My conclusion is that the efficiency dirac sees comes mainly from showing file skeleton by default

how hard do you think it would be to bring this optimization to oh-my-pi and opencode? I am testing dirac and it's very cool but the tooling isn't there yet comparing to oh-my-pi in terms of UX.

show 1 reply