Commit Graph

195 Commits

Author SHA1 Message Date
hedy cbfe1256df
Consistent shell prompt styles 2024-04-08 16:23:22 +08:00
hedy 2e873745ab
Looks like it did work. 2024-04-08 16:22:22 +08:00
hedy 454237053d
Would adding a trailing quote work? 2024-04-08 16:21:01 +08:00
hedy be44b9c44c
Add more usage examples 2024-04-08 16:19:41 +08:00
hedy d555cfa651
Use repo assets raw links for screenshots 2024-04-08 16:11:45 +08:00
hedy a283414e63
fix conflicts 2023-12-06 11:30:19 +08:00
hedy 1bd404db94
Use shlex 2023-12-06 09:07:06 +08:00
hedy 0e86f4304b
misc 2023-07-22 17:25:36 +08:00
hedy 120d9626fe
Revert "Upgrade dependencies"
This reverts commit 007bf0f647.
2023-07-10 10:45:38 +08:00
hedy 14c6df05e0
Add nex:// protocol support (initial) 2023-07-09 19:46:12 +08:00
hedy 007bf0f647
Upgrade dependencies 2023-07-09 19:02:47 +08:00
hedy f2c51b616f
Update README again 2023-07-02 13:52:21 +08:00
hedy a3c90ee560
Update README 2023-07-02 13:42:20 +08:00
hedy 3ce3194a9d
Fix typos in readme 2023-07-01 20:46:54 +08:00
hedy 90b75d11a3
Update README to add `go install` option 2023-06-27 13:24:24 +08:00
hedy 9ae11d16d3
Better readme 2023-06-27 13:17:09 +08:00
hedy 4d109c540f
Merge branch 'master' of git.sr.ht:~hedy/gelim 2023-06-27 12:08:47 +08:00
hedy 40d66f6481
Better help text for tour command 2023-06-27 12:06:50 +08:00
hedy 71905b8e24
Implement redirect counts, fix response meta edge cases
Added config option: maxRedirects, showRedirectHistory

Added commands: redirects
2023-06-27 12:04:04 +08:00
hedy ebc20c0b01
for now 2023-06-26 13:48:32 +08:00
hedy 55bde53651
huh? 2023-06-26 13:46:04 +08:00
hedy e969d48f49
Update readme 2023-06-26 13:43:45 +08:00
hedy 4acaf7a224
Update README docs 2023-06-26 13:28:52 +08:00
hedy 1bf8024c78
Fix clipboard command: Properly separate arguments 2023-06-26 13:21:40 +08:00
hedy ae8b926279
Refactor command resolving logic, fix edge cases
- Moved command line parsing to client.go, added a bunch of helper
  functions to help with respecting the quotedArgs value for the
  corresponding command. Meaning the arguments are splitted again (this
  time correctly), after the command is resolved.

  Test with:

    gelim
    > <some-command> --help
    > help
    > ? a b links

- Fixed edge cases with commands link, page, history (together with
  pevious commit). Namely, when user attempts to list links on the page
  but there are no pages visited yet, or when user attempts to use the
  page command to re-display the current page, but there is no current
  page.

  Test with:

    gelim
    > 1
    > 0
    > l
    > his
    > page

- Fixed relative URL accessing when there is no history yet. Can't
  believe there was such a nasty bug hiding in there that I never
  noticed! Now, a neat error message should be printed if the user tries
  to do './foo.txt' where there are no links in history.

  Test with:

    gelim
    > .
    > /
    > ./
    > ../bar.baz

--

PS: Non-atomic commit, I know. But it's that feeling when you go
implement a feature then along the way you find a critical bug, so you
can't help feeling guilty having on the changes for that feature since
that would mean one more 'broken' commit...
2023-04-02 09:30:49 +08:00
hedy f4927aaf49
Fix no history yet 2023-04-02 09:19:27 +08:00
hedy f08f16146d
Better config option name for clipboard 2023-03-22 18:48:42 +08:00
hedy 8d197dd6d9
Add clipboard command, better help message styles, refactor 2023-02-17 14:25:46 +08:00
hedy 09e780385e
Display: Use Style colors 2023-01-19 09:21:35 +08:00
hedy 71efe818a1
Update README and LICENSE 2023-01-19 09:19:57 +08:00
hedy 58237833aa
Use string.ReplaceAll 2023-01-18 22:03:48 +08:00
hedy 968accc0a1
go fmt 2023-01-16 08:50:29 +08:00
hedy bb8ac01706
Setup release binaries and goreleaser 2023-01-14 18:45:31 +08:00
hedy c01872419a
Clean up Makefile 2023-01-14 17:31:31 +08:00
hedy 3b66e7fe8f
Let default Version be unknown
So `gelim --version` doesn't give "gelim \n"
2022-03-30 18:53:29 +08:00
hedy 6390c6f9b9
Fix terminal typing echo after quitting client
Fixes #3 (gh)

Before: Stuff typed into shell is not echoed (only restored after
`reset` or `stty sane`)
2022-03-30 10:41:06 +00:00
hedy 8b6fdba0e5
Fix typos 2022-03-27 14:20:12 +08:00
hedy 81d483a23a
Handle error when parsing relative URLs
And fix a typo
2022-03-27 13:50:10 +08:00
hedy e822d5ab07
Add some doc comments to mysteriously exported things 2022-03-27 13:31:12 +08:00
hedy de361f7d70
Add badges 2022-02-15 18:25:12 +08:00
hedy 83f903d887
Update readme 2022-02-15 13:42:09 +08:00
hedy f57468996c
Add Makefile, --version, and builds CI manifest
- installation and build through make
- with version and revision info with ldflags
  - version flag in gelim cli
- Updated readme to reflect new installation steps

- builds.sr.ht CI manifest for debian, fedora, and alpine that builds and tests
  the code
2022-02-15 13:41:42 +08:00
hedy a35b84da46
Add tests for response meta parser function 2022-02-15 12:06:19 +08:00
Hedy Li f26056caef
Update year in license
Happy new year, I guess
2022-01-09 21:31:02 +08:00
Hedy Li 7048709d27
Fix more typos 2022-01-09 21:28:17 +08:00
Hedy Li 9ba3f885c4
Fix typos 2022-01-08 21:44:57 +08:00
Hedy Li 9e6f22c196
Fix links line wrapping and color formatting
Comitting code that is more than a few months old, bare with me if my
description of these changes is far off from reality.

- Previously the ansi colors for link didn't apply when link lines were
  wrapped. Now it should work as long as you don't configure less opts
  to use -R instead of -r.
- Wrapping of link lines for single worded labels and those with a long
  url without a label should (somehow) work better now
- Added a custom (kinda lame) wrapping method in addition to ansiwrap to
  handle a special case, I think.
2022-01-08 21:35:23 +08:00
Hedy Li b84e6d6bd0
Refactor error-handling for line input 2022-01-01 21:54:48 +08:00
Hedy Li 419356b5cd
Remove empty string argument in fmt.Println 2022-01-01 21:49:37 +08:00
codesoap fede0a4a87
Do not show error message on exit through CTRL-D 2022-01-01 21:47:49 +08:00