Commit Graph

749 Commits

Author SHA1 Message Date
Kartik K. Agaram 0075298a29 new fork: show raw text for drawing below it
https://merveilles.town/@maleza/109398870908062135

Lots of issues:
* can't edit the raw text
* ..but it confusingly displays a second cursor
* raw text doesn't update when drawing (need to constantly deserialize
  the drawing to JSON)
* ... lots of others

This is an early experiment.
2022-11-24 09:21:58 -08:00
Kartik K. Agaram 44aa8226c4 ctrl+a: select entire buffer 2022-11-19 00:27:20 -08:00
Kartik K. Agaram d5c34ba043 source editing: highlight [[ ]] comments/strings
In the process I fixed suffix detection for patterns with more than 1
character.
2022-11-11 18:02:20 -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 0e0f36f8b4 stop tracking wallclock time
We only need time differences.
2022-11-03 21:02:31 -07:00
Kartik K. Agaram d1dd3e441f fix support for absolute paths in Windows 2022-09-26 15:19:47 -07:00
Kartik K. Agaram d1d05fe5c9 migrate old settings, attempt #3
This time we have to handle absolute filenames.
Now lines-polygon-experiment fork should merge successfully, at least.
2022-09-19 00:53:25 -07:00
Kartik K. Agaram 6ac45b75b9 ugh, missed deleting an arg 2022-09-19 00:43:31 -07:00
Kartik K. Agaram 2f7b08fb8b handle missing cursors in settings 2022-09-19 00:41:37 -07: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 12b1d19761 source: load cursor position from settings 2022-09-19 00:17:36 -07:00
Kartik K. Agaram 34dc49849b source: no commandline args 2022-09-19 00:16:20 -07:00
Kartik K. Agaram 76243382d7 source: remember cursor position of multiple files 2022-09-19 00:10:12 -07:00
Kartik K. Agaram aae35c7e04 source: support only relative paths within the app 2022-09-19 00:08:52 -07:00
Kartik K. Agaram 6d1dee38f0 bugfix: mouse clicks on file navigator above log browser side 2022-09-18 23:55:04 -07:00
Kartik K. Agaram 0a6dec2fb4 support special chars like '(' in search 2022-09-18 23:50:16 -07:00
Kartik K. Agaram cf227f9031 delete a duplicate filename candidate 2022-09-18 01:54:32 -07:00
Kartik K. Agaram d141822e6c filter candidates in file navigator 2022-09-18 01:53:36 -07:00
Kartik K. Agaram 141d41aec5 hide editor cursor while in file navigator 2022-09-18 01:32:23 -07:00
Kartik K. Agaram 936d3b4616 bugfix: disable typing while file navigator is open 2022-09-18 01:28:05 -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 d1db41b7b8 bugfix: draw menu after everything else
This is stupid; I did it right in pensieve.love to begin with.
2022-09-17 23:53:05 -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 e3f9908d13 yet another bugfix in log parsing 2022-09-17 23:27:20 -07:00
Kartik K. Agaram 593418972c bugfix: perform matches in the right order 2022-09-17 23:19:36 -07:00
Kartik K. Agaram 56cdf607ed easy way to make file switching more convenient
In the fullness of time, I'll want to remember previous file, type to
filter, etc. But for now just don't forget where you were. This is
helpful because I'm often working on either the run side or the source
side, and just starting out on the right side shaves off a lot of
keypresses.
2022-09-17 23:11:23 -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 620176263a bugfix: log filenames can have 2 formats 2022-09-17 22:56:11 -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 0cc8c706ff isolate some tests from settings 2022-09-17 16:33:36 -07:00
Kartik K. Agaram 287050d598 get rid of ugly side-effects in tests 2022-09-17 10:47:47 -07:00
Kartik K. Agaram 69f4062020 bugfix: source margins when toggling log browser
Running the tests now uglily resizes the window for a second or two.
2022-09-17 10:30:08 -07:00
Kartik K. Agaram 0f02efd8cc . 2022-09-17 10:28:44 -07:00
Kartik K. Agaram 6805143c42 . 2022-09-15 23:02:11 -07:00
Kartik K. Agaram b90a54a9cb new test 2022-09-15 11:26:45 -07:00
Kartik K. Agaram 9a41c7c176 more correct absolute path detection 2022-09-11 08:31:05 -07:00
Kartik K. Agaram 511db8cffd bugfix: path munging on Windows 2022-09-10 19:23:34 -07:00
Kartik K. Agaram 06c784b576 self-documenting 0 Test_right_margin 2022-09-07 10:16:24 -07:00
Kartik K. Agaram b210ce7b36 one issue less
Selecting text is also almost done. I just need to figure out what to do
with bifold text.
2022-09-06 22:01:23 -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 73fefa7d09 support selections in the source editor
I've only tested side A so far, and included a statement of how I want
side B to behave.
2022-09-06 10:05:20 -07:00
Kartik K. Agaram 516944b572 support hyperlinks in the source editor
Integrated from the pensieve fork.
2022-09-05 14:16:55 -07:00