Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rewrite wiki-tui #226

Merged
merged 60 commits into from
Mar 21, 2024
Merged

Rewrite wiki-tui #226

merged 60 commits into from
Mar 21, 2024

Conversation

Builditluc
Copy link
Owner

@Builditluc Builditluc commented Sep 10, 2023

Linked isssues

This PR tracks the rewrite of wiki-tui's core structure and implementation. The plan is to implement the core features (viewing Wikipedia articles in the terminal), move things over to the main branch, and implement the other features like switching languages there.

You can always check the current state of development here. Feedback, Suggestions and Ideas are greatly appreciated!

You may have to dive a bit into the code for keybindings, inner workings, etc.

Todo / Info board

  • CLI
  • Configuration
  • Crash Reports (Error Handling)
  • Documentation
    • Website
    • Manpage(s)
  • ...

@Builditluc Builditluc self-assigned this Sep 18, 2023
@Builditluc Builditluc added the breaking-change This introduces a breaking change to the codebase. Increment the major version label Sep 18, 2023
- show span with class 'mw:Transclusion'
- hide span with class 'cs1-maint'
- hide span with class 'mw-editsection'
- hide span with class 'mw:Nowiki'
- add whitespace after bold element
- add whitespace after italic element
- account for borders and highlight symbol when calculating available width for the snippet
- don't handle scrolling actions when no page is present
- Enter the search bar after startup
- Restyle the scrollbar
- Make links blue
- Implement basic link selection (First, Last, Left, Right)
- Add horizontal lines after Main and Sub headings
- renamed dispatch to update
- update and handle_key_events now return ActionResult
- add ActionResult, ActionPacket
- remove Context, use single actions instead
- remove Action::ExitInsert, Action::ExitProcessing
- AppComponent will now only dispatch actions to the current Context
- rename ResultsList -> StatefulList
- improve StatefulList
@edwar4rd
Copy link

I tried the rewrited version and it worked much better with Chinese/Japanese than the older version!
Thank you for your hard work!
(I manually modified src/components/search.rs and src/app.rs to change the Language, config doesn't work yet ig)

image of the older version

image of the newer version

@Builditluc
Copy link
Owner Author

Thank you! I currently don't have a lot of time to work on the project (finals), so it'll take a bit to finish the rewrite.

The reason is that it was too complicated and we don't really need such
a detailed system yet.
@Builditluc Builditluc merged commit dbd06af into main Mar 21, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking-change This introduces a breaking change to the codebase. Increment the major version
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants