Commit Graph
93 Commits
Author SHA1 Message Date
sawka 8fb831fac6 focus selection stuff 2024-09-19 16:47:59 -07:00
Sylvie CroweandGitHub f4c52d0037 Tips Component (#789)
Add the tips as a component in addition to the initial modal.
2024-09-19 11:32:24 -07:00
Evan Simkowitz 88158289d2 remove debug log 2024-09-06 17:13:30 -07:00
sawka c00749efeb fix useWidth usage, use overlayref directly 2024-09-06 11:10:45 -07:00
Evan Simkowitz 9ef6745d66 fix regression in nodeModel.innerRect 2024-09-05 18:07:55 -07:00
Mike SawkaandGitHub 3e0ca6b41e connection handling / block controller handling (#326) 2024-09-05 00:21:08 -07:00
Evan SimkowitzandGitHub 072730f7eb Table of contents for markdown preview (#323)
Adds a table of contents in the markdown preview, with a button in the
header to toggle whether to show the TOC. When a user clicks one of the
TOC elements, the preview will scroll to the corresponding heading.

I've also cleaned up some MD preview styling that was inconsistent and
causing the preview to overflow unnecessarily. This also fixes some
terminology in the preview code.

<img width="574" alt="image"
src="https://github.com/user-attachments/assets/abb18ba9-21d3-4315-bdc3-e4bdcca39a4c">
2024-09-04 21:15:39 -07:00
sawka 9d344b899d fix issues with layouteffects in block 2024-09-03 10:24:00 -07:00
sawka c94ff3495b fix terminal paste handler -- use paste fn, unify key handlers. add extra if stmts to focusNode calls in block 2024-09-03 00:02:03 -07:00
Mike SawkaandGitHub e3b7ab73c0 preview refactor for keyboard/focus (#303) 2024-09-02 16:48:10 -07:00
Mike SawkaandGitHub 53d3ad04b7 focus/key handling for directory preview (#291) 2024-08-29 17:00:24 -07:00
Mike SawkaandGitHub a104a6e446 new focus system part 1 (#290) 2024-08-29 16:06:15 -07:00
Red J AdayaandGitHub c440fb774e suggestions UI (#286) 2024-08-28 23:47:45 -07:00
Evan SimkowitzandGitHub c892c39a73 Fix block content sizing (#280)
Make the block content sizing update once when its node moves or becomes
magnified. By manually updating this inner sizing rather than letting
the block flow in the DOM, the animations of the block frames are much
smoother.

This also fixes an issue where two scrollbars were being rendered for
the Directory Preview widget.

This also sets zero padding on nodes when there's only a single node
being rendered.
2024-08-27 13:41:36 -07:00
Mike SawkaandGitHub c2fe3b18e1 move connection switching to blockheader (#276) 2024-08-26 16:19:03 -07:00
164afeeb66 Unified node model to pass data from layout to blocks (#259)
This adds a new NodeModel, which can be passed from the TileLayout to
contained blocks. It contains all the layout data that the block should
care about, including focus status, whether a drag operation is
underway, whether the node is magnified, etc.

This also adds a focus stack for the layout, which will let the focus
switch to the last-focused node when the currently-focused one is
closed.

This also addresses a regression in the resize handles that caused them
to be offset from the cursor when dragged.

---------

Co-authored-by: sawka <mike.sawka@gmail.com>
2024-08-26 11:56:00 -07:00
sawka 43138f754c fix double model creation 2024-08-22 16:25:53 -07:00
Mike SawkaandGitHub dedfc31344 implement Cmd-I and restructure block viewmodels (#257) 2024-08-21 15:49:23 -07:00
sawka 94d6c14011 reorganize block view more 2024-08-01 15:35:13 -07:00
sawka c8cc1de2d4 add 'dev' label to application. also add 'un-magnify' icon when magnified 2024-08-01 13:46:06 -07:00
sawka 9f98d03add rearrange view files into directories 2024-08-01 13:06:18 -07:00
sawka 4b30c8bc3b move preview into own directory 2024-08-01 12:53:49 -07:00
Sylvie CroweandGitHub fc8c1104f4 Create a Help Block (#188)
Adds a block to explain how to use the app.
2024-07-31 22:22:52 -07:00
sawka 07843ab281 remove minimize 2024-07-31 21:41:28 -07:00
sawka 933c5d66e9 Cmd-m magnify block 2024-07-31 19:59:21 -07:00