Skip to content

Conversation

makew0rld
Copy link
Owner

@makew0rld makew0rld commented Oct 29, 2020

Fixes #43 (Would appreciate if @LukeEmmet could test this)
Fixes #105
Fixes #161

Todo

  • Merge master back into this branch and get it to compile

  • Replace browser.SetCurrentTab with panels.HidePanel(modal)

  • Make sure panels.SendToFront is used everywhere after panels.ShowPanel

  • Make "help" a panel instead of a tab

  • Re-implement favicons using SetTabLabel

  • Set up tab colors from config

  • Fix tab number and favicons when moving through history

  • Add .Truecolor() to user loaded colors and test

    • Should it be used for all colors? See here for explanation Yes
  • Fix ANSI on white terminal issue as described in cview issue 25

  • Fix background for tab dividers

  • Test theme changes, especially general ones like for all modal buttons and text

  • Fix ANSI document left margin color leaking

  • Replace left margin spaces with an empty primitive - fixes Left margin performance #26

  • Replace usage of cview.WordWrap with using TextView.SetWrapWidth, see this comment - Incorrect line wrapping when line has brackets #156

  • Add empty line underneath tab row

  • Make sure page scrollbar is enabled everywhere, make config option to turn it off, make it themeable - fixes Show indicator of scroll level #89

  • Test stuff like this still works: (Also used by bkmkModal):

// Remove elements and re-add them - to clear input text and keep input in focus
inputModal.ClearButtons()
inputModal.GetForm().Clear(false)
  • Update to latest commit and stop using fork, test - delete fork if it works
  • Extensive general testing (in progress)
  • Go through TODOs

New bugs (mark complete when fixed)

  • Colors are different (at least TOFU error modal)
  • Modal stays on screen after clicking yes (at least TOFU error modal)
  • Help appears up top as the first tab

Upstream issues

Added to NOTES.md already

Co-authored-by: makeworld <25111343+makeworld-the-better-one@users.noreply.github.com>
This was referenced Oct 29, 2020
@LukeEmmet
Copy link

Hi @makeworld-the-better-one. I'm happy to test these changes - let me know once it is merged and I'll try it out

@makew0rld
Copy link
Owner Author

@LukeEmmet Thanks! There's currently many bugs going on, so maybe I'll @ you again right before merge and you can test out the issue in #43. You're also welcome to test on your own time, there just might be other bugs. Let me know and I can upload a binary. Here's a current one, no guarantees. (Windows 64-bit)

amfora.exe.zip

@LukeEmmet
Copy link

LukeEmmet commented Oct 29, 2020

hi @makeworld-the-better-one I just tried that binary - it works! Well I only tested the pasting long URL into the address box though. I'm happy to try future updates, let me know. I'm not sure if I'm confident enough to create a build based on an unmerged PR, so you might have to create a binary for me again though

(edit) I did spot a minor thing - when it navigates to a web URL, it leaves the info box open, which I cannot seem to close by pressing return, space or escape. It just reactivates the [ok] button and launches the web URL again.

@makew0rld
Copy link
Owner Author

That's good enough for me! Very happy to hear that works. I might @ you later for future updates, but I don't see this regressing (since it's not my code) so I think we're good. Thanks!

@makew0rld makew0rld added this to the v1.7.0 milestone Nov 4, 2020
This commit introduced flashing issues in the tab row when reformatting,
and even can panic in certain reformatting situations. These bugs have
been logged in the inital comment of the PR.
@makew0rld makew0rld mentioned this pull request Dec 29, 2020
@makew0rld
Copy link
Owner Author

makew0rld commented Jan 11, 2021

I'm not sure if anyone is watching this thread, but if they are, I'd appreciate if they could try out this PR and just do some general testing, find out if anything is broken or buggy or doesn't work like the master branch does. Thanks!

git clone https://github.com/makeworld-the-better-one/amfora
git checkout cview-update
make
./amfora

@makew0rld makew0rld mentioned this pull request Feb 7, 2021
This fixes the display issue when the | character is used as a
keybinding.

Co-authored-by: Stephen Robinson <stephen@drsudo.net>
@makew0rld
Copy link
Owner Author

@objectliteral @sudobash1 @ThomasAdam If any of you are interested in trying out this branch and seeing if anything is broken that would be much appreciated. It's pretty much ready at this point, the step I'm on now is just "Extensive general testing". So just try out all the features you know, use it normally, do weird things, etc. If the bug you find still happens on the master branch, you can make an issue, but otherwise just report it in this thread.

Thank you!

@ThomasAdam
Copy link
Contributor

Hey @makeworld-the-better-one

Sure! So far, so good. I take it that the tab bar along the top is now supposed to wrap if the number of tabs is greater than the terminal width? The version on master doesn't wrap the tab bar past the terminal width.

@makew0rld
Copy link
Owner Author

@ThomasAdam Interesting, I didn't expect that. The bar is done differently now. I'll see what I can do, as I think wrapping is worse off.

@objectliteral
Copy link
Contributor

I noticed a difference in horizontal scrolling with the new version: When a line is long enough (or the terminal narrow enough) such that the document can be scrolled horizontally, the version in master scrolls into the left padding, whereas the cview-update version preserves the padding and cuts off the text.

Can be easily reproduced with preformatted text:

echo -e "```\nA really long line of text that is preformatted to it won't wrap and will cause you to be able to do horizontal scrolling... Maybe need some Lorem Ipsum in here, but I'm too lazy to generate some. Oh and I hope you don't test on a ultra-wide monitor...\n```\nHere is normal text" > wrap.gmi

I don't know which of the two scrolling behaviors is prefered. (I think I like the old one better...)

@makew0rld
Copy link
Owner Author

@objectliteral Thanks for reminding me about this. See 90654cd and #26 for why this happened. Basically the old left margin was just spaces that was stored as part of the page rendering. Now it's done as a flex element, which is much much more efficient.

However I think this is out of scope for this PR. I can make a new issue for this when this gets merged.

@makew0rld
Copy link
Owner Author

@ThomasAdam I filed this issue with cview about the tab bar wrapping. It will not be fixed before this PR is merged.

@makew0rld makew0rld marked this pull request as ready for review February 17, 2021 19:16
@makew0rld makew0rld merged commit 9198572 into master Feb 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
6 participants