jrnxf / thokr

✨ sleek typing tui with visualized results and historical logging
MIT License
519 stars 18 forks source link

Problem with custom prompt #12

Closed ghost closed 2 years ago

ghost commented 2 years ago

Description

I have a test file with around 50 words that have this structure : (word in each line with no space at the end)

dependencies
visualization
description
parse
duplicates
possible
nootropics
scissors

now when i run thokr -p "$(cat Notes/typing/words)" the app show like this : ( wiht no spaces between words)

dependenciesvisualizationdescriptionparseduplicatespossible
nootropicsscissors

To Reproduce

I tried to add space after each word in the text file and it worded almost : the problem i had is that i need to type twice for each

Expected behavior

To show the words with spaces

Environment

jrnxf commented 2 years ago

I don't want thokr to make any assumptions on how to process the input it's provided. In this case you could run something like thokr -p "$(echo $(cat input.txt))" to achieve the desired result.