Commit Graph

22 Commits

Author SHA1 Message Date
Kartik K. Agaram
6ed60848a4 delete some dead code
This is a holdover from the days of bifold text.
2023-09-15 13:33:26 -07:00
Kartik K. Agaram
4ab901c92e get rid of to_text
I've been misunderstanding what Text objects are. They can render a lot
of text with a given line height, word wrap, colors in various places.
And I've been creating one for every word 🤦

Unwinding this will take some time. This is just a first baby step for
ad hoc text objects. Turns out I don't need to convert to Text to get
something's rendered width, just the Font can do that.

Thanks to the LÖVE Discord for educating me:
  https://discord.com/channels/329400828920070144/330089431379869708/1091535487333826580
2023-04-01 16:12:55 -07:00
Kartik K. Agaram
2b3e09ca0f make love event names consistent
I want the words to be easy to read, and to use a consistent tense.
update and focus seem more timeless; let's make everything like those.
2022-12-23 18:52:28 -08:00
Kartik K. Agaram
f9bea7783b source editor: clear logs 2022-12-05 15:26:38 -08:00
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