- 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...
- 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
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.