157 Commits
Author SHA1 Message Date
Evan SimkowitzandGitHub 4e60880b8f Clean up spacing and padding of elements in the block header (#318)
This frees up some more space for content that was previously being
eaten up by unnecessary gaps and padding. It also centers some
off-center icons.
2024-09-03 23:14:22 -07:00
Evan SimkowitzandGitHub 383a71fc25 Fix infinite loop in layoutAtom, improve iconbutton disable code (#306)
Fixes an infinite loop in the layoutModel atom synchronization that
would cause the atom to update indefinitely when the root node is
deleted.

Also adds a dedicated `disabled` flag for the IconButton decl so we can
disable the onClick handler when the button is disabled.

Also updates the Magnify toggle button to use this new flag, so that
when there's only one leaf in a layout, the magnify button is disabed.
2024-09-03 11:24:45 -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
Sylvie CroweandGitHub 226bc4ee6f Connect With Non-Terminal Widgets (#304)
- Adds connection buttons for previews
- Makes it possible for graphs and previews to connect on backend
(without a terminal open to connection)
- Changes the wsh install message
2024-09-02 12:34:49 -07:00
Red J AdayaandGitHub 63cfe1d279 preview edit (#302) 2024-08-31 11:57:45 -07:00
sawka 1975b9b1db connstatus icon 2024-08-30 14:36:16 -07:00
sawka 8aa4025907 add restart controller to context menu 2024-08-30 14:01:53 -07:00
sawka 74f551b212 connstatus fix, update connection icons appropriately for status 2024-08-30 13:56:53 -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
Evan SimkowitzandGitHub 637eaa4206 Use webview's built-in history for navigation (#232) 2024-08-29 13:37:05 -07:00
Red J AdayaandGitHub c440fb774e suggestions UI (#286) 2024-08-28 23:47:45 -07:00
Evan SimkowitzandGitHub 56a930c1dc Make disabled iconbuttons more distinct (#289)
Increases the idle opacity for enabled buttons in the header slightly
and decreases opacity for disabled buttons. Also sets a default cursor
when the button is disabled:

Forward button enabled and idle, back button disabled:

![image](https://github.com/user-attachments/assets/b2f4dfc3-2fe8-46e0-9eac-edfebf42dfdd)
Forward button enabled and hovered, back button disabled:

![image](https://github.com/user-attachments/assets/34b4f89d-ba6a-4b57-8533-527ef1bc9868)
2024-08-28 18:30:41 -07:00
Mike SawkaandGitHub 8630e23239 new config system (#283) 2024-08-27 18:49:49 -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
sawka c2d2ad9136 separate cmd+o from switch connection (disconnect typeaaheadatom), and allow width to 95% 2024-08-26 21:03:12 -07:00
sawka fd7fa9f6f1 useatomvaluesafe 2024-08-26 16:56:37 -07:00
sawka 19ebfa0361 fix local icon for term connections 2024-08-26 16:54:39 -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
Mike SawkaandGitHub 62d9d53e52 fix terminal paste (inverted colors) (#271) 2024-08-23 22:12:27 -07:00
636d71e652 Change Connection UI (#269)
This allows the user to select different connections from the terminal
block. Some features include:
- a status bar at the top of the term block that shows your current
connection
- an icon next to the status bar that shows whether the connection is
currently connected
- the ability to click the status bar and type in a new connection in
order to change the current connection

---------

Co-authored-by: sawka <mike.sawka@gmail.com>
2024-08-23 18:12:40 -07:00
Red J AdayaandGitHub c1684d28d1 suggestions modal (#260) 2024-08-23 00:18:49 -07:00