Code Monkey home page Code Monkey logo

Comments (2)

lemnos avatar lemnos commented on August 20, 2024

I know that Esc "restarts the test" but in the case of random words, it generates a totally new set of words than what you were previously typing

I think the default behaviour makes more sense and am not convinced this is useful enough to warrant a dedicated flag. For your own purposes you can achieve the desired result by generating the text yourself and relying on the default behaviour of custom text. E.G shuf -n50 /usr/share/dict/words|tt.

and in the case of fed-in text, it puts you back at the very first paragraph, regardless of what paragraph you were on when you pressed Esc.

I am considering implementing something like this, however I'm not sure how it should work. The current behaviour is to treat everything that gets piped in as a single test consisting of multiple paragraphs (which is why WPM is reported at the end). If the behaviour of escape was to change how would you modify the WPM?

In this regard, I like wpm's navigation: space and arrows to move through (sub-)tests and esc to restart.

I am not familiar with it, but this sounds like it might be an interesting idea.

Edit:

Upon reflection I've realized what you propose is better default behaviour and implemented it. I have also added -multi which causes the program to treat each paragraph of the input as a separate test. It is worth noting that tt is flexible enough that it is possible to implement -multi externally

E.G

fmt -w 1000 < input.txt|awk '!/^ *$/'|while read p; do echo $p|tt -oneshot || break; done

however it is decidedly common enough to justify the inclusion of a dedicated flag.

Please feel free to close the issue if this addresses your use case or else leave further comment :).

from tt.

lemnos avatar lemnos commented on August 20, 2024

Closing due to inactivity.

from tt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.