lemnos / tt Goto Github PK
View Code? Open in Web Editor NEWA terminal based typing test.
License: MIT License
A terminal based typing test.
License: MIT License
tt.1.gz
is not present in https://github.com/lemnos/tt/releases/tag/v0.4.1.
Also, tt
and tt-linux
are the same file.
I can't see the screen when I enter the words more than 700
On macOS, this give an error:
sudo curl -o /usr/share/man/man1/tt.1.gz -L https://github.com/lemnos/tt/releases/download/v0.4.2/tt.1.gz
example:
$ sudo curl -o /usr/share/man/man1/tt.1.gz -L https://github.com/lemnos/tt/releases/download/v0.4.2/tt.1.gz
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 615 100 615 0 0 98 0 0:00:06 0:00:06 --:--:-- 153
Warning: Failed to create the file /usr/share/man/man1/tt.1.gz: Operation not
Warning: permitted
65 2142 65 1410 0 0 209 0 0:00:10 0:00:06 0:00:04 209
curl: (23) Failed writing body (0 != 1410)
> sudo make install
Password:
install -Dm755 bin/tt -t /usr/local/bin
install: illegal option -- D
usage: install [-bCcpSsv] [-B suffix] [-f flags] [-g group] [-m mode]
[-o owner] file1 file2
install [-bCcpSsv] [-B suffix] [-f flags] [-g group] [-m mode]
[-o owner] file1 ... fileN directory
install -d [-v] [-g group] [-m mode] [-o owner] directory ...
make: *** [install] Error 64
This is on OSX 10.15.7 with go version go1.16.5 darwin/amd64
installed via brew. It doesn't look like the OSX version of install
has a -D
option, so maybe this could be done with mkdir -p
instead?
Hey there,
I noticed that the accuracy is calculated based of the amount on wrong characters when you finish typing the line - The problem with this is, that you always get an accuracy Value of 100% if you correct your mistakes - Is that intended?
Thanks!
Thank you for this wonderful tool. I was wondering if we might request the feature of adding random common punctuation to word lists, e.g. tt -n 10
. So things like periods, commas, semi-colons, etc.
It would be nice to be able to repeat the exact same (sub-)test to work on accuracy, strive for a better WPM, etc.
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 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.
In this regard, I like wpm's navigation: space and arrows to move through (sub-)tests and esc to restart.
I suggest adding the ability to handle multiple lines of text as input in "tt." Currently, only individual words and sentences are accepted for typing practice.
This enhancement will allow users to practice typing larger blocks of text, such as code snippets, paragraphs, or multiline quotes, making "tt" more versatile and useful for various users.
The program should accept multiline input from command-line arguments, files, and STDIN, considering each paragraph as a distinct segment in the typing test.
Poem Title: Dreams
Hold fast to dreams
For if dreams die
Life is a broken-winged bird
That cannot fly.
Hold fast to dreams
For when dreams go
Life is a barren field
Frozen with snow.
Now the information shown in the report is very limited, only WPM, CPM, accuracy, mistakes and attribution in -quotes
.
I have some text files having paragraphs exceeded thousand characters, which takes a lot of time to complete the test.
I would like to know the duration that I performed the test, but I do not want to manually count the words in the previous paragraph and do the math ( word count / WPM), or start a counter when I start a test.
I get that there are a lot of fancy themes, but is there a way just to use my terminal colors?
I'd to practice typing code as well. Not sure how easy this would be to add though...
Remove the brace expansion in the Makefile. Not all shells support it
whenever im running the tt
command,
its creating a test.log
file in that location
it will better if there is a permanent location for test.log
file like ~/.tt/test.log
Thank you for the application.
Please can you try to make a docker install of the program, that would be very good
Hello. Please add a series of sound effects such as the sound of a typewriter or a mechanical keyboard. Thank you.
Python version 3.9.13. Windows 10 and 11,
When running pip install tt
, I get the following error:
# more above
tt\cross\rectcross\rect_maxvol\cython_boost\maxvol.pyx:225:13: Cannot assign type 'double' to 'int'
Error compiling Cython file:
------------------------------------------------------------
...
tmp = abs(coef[k])
if tmp > abs_max:
abs_max = tmp
j = k
max_value = coef[j]
i = j/N
^
------------------------------------------------------------
tt\cross\rectcross\rect_maxvol\cython_boost\maxvol.pyx:356:13: Cannot assign type 'double' to 'int'
Error compiling Cython file:
------------------------------------------------------------
...
tmp = abs(coef[k])
if tmp > abs_max:
abs_max = tmp
j = k
max_value = coef[j]
i = j/N
^
------------------------------------------------------------
tt\cross\rectcross\rect_maxvol\cython_boost\maxvol.pyx:487:13: Cannot assign type 'double' to 'int'
Error compiling Cython file:
------------------------------------------------------------
...
tmp = abs(coef[k])
if tmp > abs_max:
abs_max = tmp
j = k
max_value = coef[j]
i = j/N
^
------------------------------------------------------------
tt\cross\rectcross\rect_maxvol\cython_boost\maxvol.pyx:618:13: Cannot assign type 'double' to 'int'
error: 4 errors while compiling 'tt\\cross\\rectcross\\rect_maxvol\\cython_boost\\maxvol.pyx' with Cython
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for tt
Running setup.py clean for tt
Failed to build tt
ERROR: Could not build wheels for tt, which is required to install pyproject.toml-based projects
it great , thanks u for this
Have some build with go1.19 for 0.4.2 release, but the master builds out fine with go1.19. Thanks!
It would be nice to allow for user to set a font size. Especially since current size is quite small for me.
I know that there is the default terminal font size changer but it would be nice if there was a custom option within the command to change font-size
If typo in word that has newline attached, the newline isn't stripped (untested if leading or trailing newline) before displaying in typos list when tt
ends. Fix can be implemented in for loop
in func showReport(scr tcell.Screen, cpm, wpm int, accuracy float64, attribution string, mistakes []mistake)
in tt.go
. (Currently here).
I want to both practice typing and read a book.
I propose adding a -norandom flag that allows tt -words my-book.txt
to not be random.
This can mimic real typing (e.g looking at a paper and typing the words on it, without looking at the typing box on the monitor).
In this kind of typing, it is ourselves to realize if we type the wrong key-press, but not the instant red indicator shown on the computer screen.
I think this is an very important kind of training. Thanks.
I use tt as a replacement for Monkeytype, which was my previous type tester, and I miss the variety and amount of quotes from there, so I think it would be great if someone could make a quote list for tt from Monkeytype.
Monkeytype Github: https://github.com/monkeytypegame/monkeytype
Thank you. :)
quotes like the following show up:
WPM: 50
CPM: 252
Accuracy: 97.65%
Mistakes: effort�not, intelligence�is
Attribution: Winston Churchill
They have some symbols that I find annoying because they mark some errors on my runs.
I tried to check the quotes file, but the text editor warned me not to edit it because it contained unknown symbols, probably related to them. Some quotes also have missing spaces after punctuation and are most annoyingly repeated on the file, appearing more commonly; if you could fix that file, it would be appreciated.
My terminal is Gnome 42 Terminal v3.44.0 with Unicode UTF-8 Encoding.
Hello, I am on Windows, and I first built "tt" from the source. When I tried running it, I received the following error:
ERROR: 1000en does not appear to be a valid word list. See '-list words' for a list of built-in word lists.
I attempted to use -list words
, and it displayed all the built-in words, including 1000en
.
Next, I tried downloading "tt" from GitHub releases, but unfortunately, I encountered the same issue.
I am not entirely sure if I am missing something, and I would appreciate any assistance.
Pressing option-backspace or control-backspace only deletes one character on macos as if no modifier was pressed. Only control-w works as it does in terminal in general.
macos 12.6.5, both in iTerm2 and Terminal.app
tt gives this error saying there should be an "en" file in the home directory. Everything worked when first installed then without any reason this error started appearing. I uninstalled tt then reinstalled and still the same error. I think the issue is tt looking for the words/quotes list in the wrong directory.
Thanks for the windows build! I see that the initialization is trying to figure out my home directory on windows using HOME
but that variable does not exist on windows.
Results in an ERROR: Could not resolve home directory.
.
USERPROFILE
could be used instead.
Would be great if this cli could be installed using brew on macos.
I have some repos that could give you a clue
https://github.com/mfuentesg/ksd
https://github.com/mfuentesg/homebrew-tap
btw, I am releasing my app using goreleaaser
Consider adding a Scripting feature -endless
to allow tt
to operate when the worldlist has been exhausted.
The use case: I had to choose an email handle and questioned which of the presented two options were faster to type. tt
came to the top of brave's search results. Yet it's not clear if this is possible.
Created two files, each containing the email to test. Ran tt -t 10 email1.test
which ran once and quit. I don't know if this is possible with tt
without filling a file with the same phrase multiple times.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.