8000 Comparing v0.3.1...v0.4.0 · Samyak2/toipe · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: Samyak2/toipe
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.3.1
Choose a base ref
...
head repository: Samyak2/toipe
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v0.4.0
Choose a head ref
  • 19 commits
  • 19 files changed
  • 2 contributors

Commits on Apr 3, 2022

  1. Configuration menu
    Copy the full SHA
    5de5d53 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    cfba937 View commit details
    Browse the repository at this point in the history

Commits on Apr 4, 2022

  1. Configuration menu
    Copy the full SHA
    84e819f View commit details
    Browse the repository at this point in the history
  2. doc(readme): add a note about windows support

    Also moved these notes to a different section at the bottom.
    
    See #14 for details.
    Samyak2 authored Apr 4, 2022
    Configuration menu
    Copy the full SHA
    d06e104 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    d59910a View commit details
    Browse the repository at this point in the history
  4. Delint code

    Fix clippy lints
    Property404 committed Apr 4, 2022
    Configuration menu
    Copy the full SHA
    681ef8e View commit details
    Browse the repository at this point in the history
  5. Run Clippy in CI

    Property404 committed Apr 4, 2022
    Configuration menu
    Copy the full SHA
    43e3d7c View commit details
    Browse the repository at this point in the history

Commits on Apr 5, 2022

  1. Merge pull request #10 from Property404/Property404/clippyfix

    Appease clippy and add to CI
    Samyak2 authored Apr 5, 2022
    Configuration menu
    Copy the full SHA
    01ba676 View commit details
    Browse the repository at this point in the history
  2. feat: some more shortcuts and fix ctrl-c behaviour

    Added a new enum `TestStatus` that lives inside `Toipe::test`:
    - stores the status of the test - whether to continue, restart, exit or
      show results - after a key press
    - has helper methods to know when to continue, show results and when to
      restart
    - used this as the result type of process_key instead of a boolean
      (would have been a bunch of bools without this)
    - used this to determine whether to show results, to restart or to look
      for more key presses
    
    Added 2 more shortcuts:
    - ctrl-r to restart test (refreshes the words too)
        - fixes #16
    - ctrl-w to delete the last word
        - fixes #18
    
    ctrl-c now exits directly instead of showing the results screen. This
    fixes #15.
    Samyak2 committed Apr 5, 2022
    Configuration menu
    Copy the full SHA
    9e6a8fb View commit details
    Browse the repository at this point in the history
  3. feat: document keyboard shortcuts

    Display keyboard shortcuts at the bottom of the typing test screen. Also
    moved shortcuts to the bottom on the results screen.
    - Added a helper function `display_lines_bottom` for displaying stuff
      at the bottom of the screen (currently used only to display
      shortcuts).
    - only two shortcuts are displayed here.
    
    Documented all keyboard shortcuts in the about section of the CLI help
    page. Also added a section for this in the README.
    
    Also modified Cargo.toml's description - removed "tux"
    Samyak2 committed Apr 5, 2022
    Configuration menu
    Copy the full SHA
    419fa31 View commit details
    Browse the repository at this point in the history

Commits on Apr 7, 2022

  1. Merge pull request #20 from Samyak2/more-shortcuts

    More shortcuts
    Samyak2 authored Apr 7, 2022
    Configuration menu
    Copy the full SHA
    7c81974 View commit details
    Browse the repository at this point in the history
  2. feat: better WPM calculation

    fixes #21
    
    see issue for the reasoning, etc.
    
    number of correctly typed chars and number of uncorrected errors is
    calculated after the typing has completed.
    
    ToipeResults:
    - changed field names
    - documented fields
    - added final_chars_typed_correctly and final_uncorrected_errors fields
    - CPM is not available anymore
    - WPM is calculated using a fixed 5 chars per word instead of
      calculating it on the fly
        - uncorrected errors are penalized
        - value is clamped to 0.0 to prevent negative WPM
    - `num_correct_chars()` did not make sense to keep as a function since
      it's only used in accuracy
        - note: accuracy calculation has not changed
    Samyak2 committed Apr 7, 2022
    Configuration menu
    Copy the full SHA
    c4dcaa1 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    3449bca View commit details
    Browse the repository at this point in the history

Commits on Apr 8, 2022

  1. Merge pull request #22 from Samyak2/fix-wpm

    Fix wpm
    Samyak2 authored Apr 8, 2022
    Configuration menu
    Copy the full SHA
    ac21990 View commit details
    Browse the repository at this point in the history
  2. feat: add larger word lists - 500 to 5000

    towards #17
    
    also modified existing top250 list to remove non-alphabetic words (added
    an extra word in place of the one removed)
    
    word lists added:
    - top500
    - top1000
    - top2500
    - top5000
    
    all of them are from the same source as the initial top250 list
    Samyak2 committed Apr 8, 2022
    Configuration menu
    Copy the full SHA
    7c049c5 View commit details
    Browse the repository at this point in the history
  3. chore: add scripts to check and sort word lists

    also added the script as a step in work flow
    
    only for english for now
    Samyak2 committed Apr 8, 2022
    Configuration menu
    Copy the full SHA
    bf7f9ae View commit details
    Browse the repository at this point in the history
  4. feat: use enum for word list config, embed newly added word lists

    don't be stringly typed! suggestion from reddit:
    https://www.reddit.com/r/rust/comments/tvamfz/comment/i3gf3sy/
    
    the possible values of a word list now live in an `BuiltInWordlist`
    enum. used `clap::ArgEnum` to use this in CLI - auto-generates list of
    possible values too!
    
    but because of this change, you can't specify a custom word list using
    the same flag. you will need to use `-f` or `--file` option instead.
    when provided, this option will override any value of `-w`.
    - added a method `text_name` to get the name of text used for the test
    
    display text name/word list name/file path on the results screen at the
    top.
    Samyak2 committed Apr 8, 2022
    Configuration menu
    Copy the full SHA
    18d4cfa View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    97e0bfc View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    41f75a8 View commit details
    Browse the repository at this point in the history
Loading
0