Commit graph

30 commits

Author SHA1 Message Date
Brandon W Maister
b983595049 feat: Show errored ports as an error state 2024-08-05 12:16:47 -07:00
a40a493d39 Initial implementation of clipboard forwarding 2024-06-23 08:54:41 -07:00
08a41492b8 Clippy I guess 2024-06-21 08:26:56 -07:00
b85e3fa9a6 Fix crash on changing selection with no ports
No ports always means no selection
2023-04-30 07:33:06 -07:00
815ee5e86e Remove explanation for what fwd does
You probably know already, and it feels clunky here.
2023-04-30 07:24:18 -07:00
ec130d38b9 Support running server side with sudo
This allows forwarding ports that you would otherwise not be able to
see. More dangerous, probably not what you want most of the time, but
OK for now.

(I continue to resist adding clap as a dependency.)
2023-04-30 06:51:37 -07:00
59b8b8f3dc Cleanup some help text 2023-04-26 12:00:01 -07:00
a3c4c3ea5e Track the selection across refreshes by port number
The next step would obviously be to track the selection only by port
number, so that we remember the selection if the port goes away and
comes back.
2023-03-23 19:40:42 -07:00
99d377d4ce Make help modal
I don't like that ENTER and the arrow keys still manipulate the list
while help is showing. Ignore other keypresses while the help screen
is shown.

Also, make the spelling/capitalization a little cleaner.
2023-03-21 23:17:16 -07:00
34340e2575 Simplify centering math, don't crash if the rectangle clips
Also, tests
2023-03-21 23:07:08 -07:00
Brandon W Maister
290dcff9b6 tui: Add a help popup 2023-03-21 22:53:35 -07:00
Brandon W Maister
381c008665 tui: Add a fwd column with a ✓ to show that ports are being forwarded
I didn't realize that everything was forwarded by default, this makes it more
obvious.
2023-03-21 22:53:35 -07:00
7410ec5143 Add tests for keypresses 2023-03-21 22:48:06 -07:00
f174f364a4 Re-add assertions and simplify wrapping 2023-03-21 19:45:17 -07:00
Brandon W Maister
3060032a95 ui: Wrap around list when at the endoflife
Pressing "up"/"k" at the top of the UI will now go to the end of the list. And
same in reverse.
2023-02-18 11:27:58 -08:00
Brandon W Maister
85dc2f0707 ui: Switch j and k keys to match vi -- j means down, k means up 2023-02-18 11:27:23 -08:00
81b53355f2 Some more bad tests because I'm bored 2022-12-19 20:53:26 -08:00
e0d1efb997 Add a test for that underflow I fixed 2022-12-19 19:45:07 -08:00
0bb3fac61b Don't underflow on no ports
If ports are empty we underflow on `len()-1`, which is bad. Stop doing
that.
2022-12-19 19:07:05 -08:00
34d1830413 Log URL opens 2022-12-17 11:52:12 -08:00
9cf0089e48 Handle browse message 2022-12-17 08:29:09 -08:00
c9197a02ff Don't panic if the server sends something unexpected
I mean, it *is* a different version.
2022-12-17 08:27:38 -08:00
83f2ad633b Correct my understanding of mutability a little 2022-12-17 08:26:05 -08:00
6f906d80a7 Protocol version, async pump, start some testing 2022-12-16 13:57:52 -08:00
abbb30d87b Remove ports when they're unconfigured
This is closer to what I had intended
2022-11-28 07:03:04 -08:00
46c9643ddf Remove unused import 2022-11-28 06:42:51 -08:00
fc75ffcd4e Remove the disconnected screen 2022-11-28 06:41:26 -08:00
dc374f0d20 Change UI to tui 2022-11-27 08:24:01 -08:00
efb7ef6929 Starting configuration, probably doesn't work 2022-10-18 11:28:56 -07:00
86ea099b2c Split client and server into modules 2022-10-17 19:57:47 -07:00