Commit graph

104 commits

Author SHA1 Message Date
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
d3d7b4f137 Bump cargo version to v0.6.2 2023-04-26 12:01:17 -07:00
59b8b8f3dc Cleanup some help text 2023-04-26 12:00:01 -07:00
0f8486d418 Upgrade dependencies 2023-04-26 11:53:15 -07:00
b74bf4aa9a The release that we create should be a draft
A human should have to publish it.
2023-04-26 11:47:48 -07:00
7deb8489e4 Bump the cargo version
Whoops I forgot.
2023-04-26 11:44:21 -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
5fb0410eee Make README a little more clear
Thanks Digant!
2023-02-03 15:32:11 -08:00
Digant C Kasundra
19d6095c86
Make the README a little more clear 2023-02-03 18:21:35 -05:00
19e7baf89c Update dependencies
Thanks dependabot, I guess
2023-02-03 15:18:26 -08:00
766aad15f4 Update the version number for new args 2023-01-24 09:14:31 -08:00
fc144162b9 Better command line parsing, version, usage
Also tests for same
2023-01-24 09:13:53 -08:00
52fe5523b2 Update version to 0.4.0 for a clean release 2023-01-20 13:34:53 -08:00
e6a9caa1b5 Remove version from release archive
Makes downloading easier probably?
2023-01-20 13:27:00 -08:00
505eed6ea5 More stuff; use the cross compiler and stuff 2023-01-20 13:18:51 -08:00
33adbd3e27 Whoops bad YAML 2023-01-20 13:01:41 -08:00
ad5c47456a Version 0.3.0 2023-01-20 12:56:59 -08:00
de43067e0e I like vs actually 2023-01-20 12:55:55 -08:00
5f6b5054d4 I HATE YAML 2023-01-20 12:53:54 -08:00
65d26509d9 Maybe this is a release workflow 2023-01-20 12:51:20 -08:00
1dea6c5042 Add a basic CI workflow 2023-01-20 09:24:24 -08:00
528d616777 Single binary for browsing
Some systems require a single binary for the BROWSER variable, and
rather than muck about with shell scripts we have this small thing
instead.
2022-12-20 07:20:16 -08:00
57c01b0dd4 Vendoring is not for me
I cannot get the checksums to consistently match across all operating
systems.
2022-12-20 06:55: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
c75e684f5b Remove unused import on unix-family systems 2022-12-19 19:09:29 -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
81de013103 Fix up vendor for... linux? 2022-12-20 01:02:23 +00:00
b799fedeec Correct vendor checkin for macos 2022-12-19 09:09:31 -08:00
9c435dc440 Vendor dependencies
Let's see how I like this workflow.
2022-12-19 08:38:22 -08:00
34d1830413 Log URL opens 2022-12-17 11:52:12 -08:00
ff5d767d87 Fix windows build 2022-12-17 10:04:22 -08:00
1a5228c380 Basic support for opening a browser maybe 2022-12-17 09:03:35 -08:00
d6c9ae8d71 Move browser code to core crate 2022-12-17 08:48:57 -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
d6a2b6bdf6 Fix non-unix build 2022-12-17 08:19:56 -08:00
d63ceb730f Initial browse support, server side 2022-12-17 08:12:30 -08:00
6f906d80a7 Protocol version, async pump, start some testing 2022-12-16 13:57:52 -08:00