Commit Graph

18 Commits

Author SHA1 Message Date
Kartik K. Agaram a54e59446d show partial items in the menu
Seeing a partial item can nudge someone to try resizing the window and
so learn about more shortcuts.
2022-11-06 09:17:02 -08:00
Kartik K. Agaram 690a1c334c source: show files in MRU order
I'm not going to save this MRU order across sessions for now. It's good
enough to save cursor positions for individual files, I think.
2022-09-19 00:37:08 -07:00
Kartik K. Agaram fd7d36fefd extract a couple of functions 2022-09-19 00:35:10 -07:00
Kartik K. Agaram d141822e6c filter candidates in file navigator 2022-09-18 01:53:36 -07:00
Kartik K. Agaram 89b30a62ef support mouse clicks in file navigator 2022-09-18 01:26:20 -07:00
Kartik K. Agaram bc464fe6f1 start showing source menu file navigation state graphically
I'm a bit leery of going down this road:

- If there's a bug in how I render logs graphically that could be
  extremely misleading. Perhaps this suggests that the code to log
  things should be significantly simpler than the code that might be
  debugged. If writing the debug helper requires all my smarts I'm not
  smart enough to debug using the helper, etc. Given this idea, the fact
  that I'm copying production code into the logging helper is
  concerning.

- There's a question of what code it's ok for logging helpers to depend
  on. This is an issue shared with tests. I often implicitly (and
  without meaning to) assume the presence of some well-tested helpers
  when writing tests. If those helpers ever break I can get into a
  rabbit hole of debugging. This problem might be even more insidious
  with logging helpers that will give me no indication when they break.

Still and all, it's cool to see menus in my logs. Let's see if it's
useful.
2022-09-18 01:11:23 -07:00
Kartik K. Agaram 21b158398b source: up/down in file navigator
I'm starting to use logging, but it's still easier to print textual logs.
2022-09-18 00:37:20 -07:00
Kartik K. Agaram 5c0ce8ee36 indent 2022-09-18 00:01:14 -07:00
Kartik K. Agaram 9013eaa637 source: show all files in navigator
We still don't have up/down arrow keys. And we still don't have the
ability to filter filenames by typing.
2022-09-17 23:53:57 -07:00
Kartik K. Agaram 36bde53d41 rename 2022-09-17 23:43:14 -07:00
Kartik K. Agaram c02a5ee1ff delete some logs
One open question is how to manage logs while drawing, since they can be
extremely verbose. Neither tags nor depths seem like the right metaphor
here, and that gives me pause that I perhaps don't see the full space of
needs yet.
2022-09-17 23:27:20 -07:00
Kartik K. Agaram b00232e01a bugfix: never skip files in file navigator 2022-09-17 23:05:08 -07:00
Kartik K. Agaram b5ff0a4764 use existing local 2022-09-17 23:03:43 -07:00
Kartik K. Agaram cea2730080 use a helper 2022-09-17 23:01:40 -07:00
Kartik K. Agaram 72791d9c35 some debug prints
I'm starting to edit the sources from within the app in ernest. First
question: why does the file navigation menu skip some files? These
prints answer the question.
2022-09-17 20:37:40 -07:00
Kartik K. Agaram c112b8fadf switch shortcuts for bifold text
I've been running out of ctrl+ shortcuts, and I just remembered my
original idea to keep ctrl+ for drawings/mouse operations and alt+ for
everything else.
2022-09-06 18:39:46 -07:00
Kartik K. Agaram 528c64d690 support drawings in the source editor 2022-09-05 11:29:39 -07:00
Kartik K. Agaram e1c5a42f31 editing source code from within the app
integrated from pong.love via text.love:
  https://merveilles.town/@akkartik/108933336531898243
2022-09-03 14:13:22 -07:00