Commit Graph
377 Commits
Author SHA1 Message Date
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
Sylvia Crowe fe8b1c1924 fix: correct ConnStatus uninitialized field 2024-08-24 15:27:14 -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 b9c87a0ce3 hide when Enter is pressed (#262) 2024-08-23 09:46:04 -07:00
Red J AdayaandGitHub c1684d28d1 suggestions modal (#260) 2024-08-23 00:18:49 -07:00
Red J AdayaandGitHub af3bc7d249 reduce target area for tab close btn (#261) 2024-08-23 00:15:54 -07:00
Evan Simkowitz 7c03a58b1b don't set ready in effect 2024-08-22 19:26:22 -07:00
sawka 43138f754c fix double model creation 2024-08-22 16:25:53 -07:00
sawka 9237208e49 quick edits to help 2024-08-22 11:36:35 -07:00
sawka 9e7df9787d move widgets back to right hand side 2024-08-22 11:36:35 -07:00
Evan SimkowitzandGitHub d5140129cd Fix block numbering and switching with arrow keys (#258) 2024-08-21 17:43:11 -07:00
Mike SawkaandGitHub dedfc31344 implement Cmd-I and restructure block viewmodels (#257) 2024-08-21 15:49:23 -07:00
Evan SimkowitzandGitHub e527e2ab77 Add authkey header for requests to the backend (#256)
With this PR, Electron will generate a new authorization key that the Go
backend will look for in any incoming requests. The Electron backend
will inject this header with all requests to the backend to ensure no
additional work is required on the frontend.

This also adds a `fetchutil` abstraction that will use the Electron
`net` module when calls are made from the Electron backend to the Go
backend. When using the `node:fetch` module, Electron can't inject
headers to requests. The Electron `net` module is also faster than the
Node module.

This also breaks out platform functions in emain into their own file so
other emain modules can import them.
2024-08-21 15:04:39 -07:00
Evan SimkowitzandGitHub 23261a7a98 Add flag for specifying a new node as magnified on insert (#253) 2024-08-20 20:14:14 -07:00
Evan SimkowitzandGitHub bd4bf93d4a Update copyright indicators on a bunch of files (#255) 2024-08-20 17:01:29 -07:00
Mike SawkaandGitHub 037497e7f1 wsh edit working (#252) 2024-08-20 14:56:48 -07:00
sawka 2f020099ec cmd:n and cmd:t 2024-08-19 22:39:52 -07:00
sawka e70e08e531 implement history functions for preview 2024-08-19 22:07:35 -07:00
sawka 9a06b43266 implement a viewmodel keydown handler 2024-08-19 18:41:47 -07:00
sawka f535c5c1ab default file to ~ 2024-08-19 18:33:52 -07:00
sawka a0734a3bbe implement cmd+t 2024-08-19 18:28:28 -07:00
sawka a639fc3c8d implement defaultwidgets 2024-08-19 17:21:44 -07:00
Red J AdayaandGitHub 964c422a02 about modal (#244) 2024-08-19 15:49:40 -07:00
Mike SawkaandGitHub 534fcc5d0a client support for rpc cancel (#249) 2024-08-19 15:44:30 -07:00