aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorB14CK313 <jajoblack@gmx.de>2022-04-01 23:02:25 +0200
committerGitHub <noreply@github.com>2022-04-01 17:02:25 -0400
commitb97fc0b1cc93fe0d7d464b978e62f250a9738a5f (patch)
tree4d490c5a0020e3f0c7f43f2c964fc9c562b6a4c1 /README.md
parentb45b10654d82033978faa29d662eac1df09fe5a1 (diff)
downloadlite-xl-plugins-b97fc0b1cc93fe0d7d464b978e62f250a9738a5f.tar.gz
lite-xl-plugins-b97fc0b1cc93fe0d7d464b978e62f250a9738a5f.zip
typingspeed: added typingspeed plugin (#47)
This plugin displays your current typing speed in characters per minute and words per minute in the status bar. I tried to keep the logic very simple, so instead of using real accurate values, it counts characters/words in the current minute and adds the value of the previous minute multiplied by the percentage needed to 'complete' the current minute (so it basically always displays the value for one minute, but the part of it that falls into the last minute uses the average): ``` words_last * (1 - (t.sec) / 60) + words ``` This should give fairly good results without the need for complicated code or falling back to 0 after every minute.
Diffstat (limited to 'README.md')
-rw-r--r--README.md1
1 files changed, 1 insertions, 0 deletions
diff --git a/README.md b/README.md
index 61fe45c..c508037 100644
--- a/README.md
+++ b/README.md
@@ -144,6 +144,7 @@ to something other than a raw file it should be marked with an asterisk.*
| [`titleize`](plugins/titleize.lua?raw=1) | Titleizes selected string (`hello world` => `Hello World`) |
| [`todotreeview`](https://github.com/drmargarido/TodoTreeView)\* | Todo tree viewer for annotations in code like `TODO`, `BUG`, `FIX`, `IMPROVEMENT` |
| [`togglesnakecamel`](plugins/togglesnakecamel.lua?raw=1) | Toggles symbols between `snake_case` and `camelCase` |
+| [`typingspeed`](plugins/typingspeed.lua?raw=1) | Displays your current typing speed in characters and words per minute in the status bar |
| [`unboundedscroll`](plugins/unboundedscroll.lua?raw=1) | Allows scrolling outside the bounds of a document |
| [`updatechecker`](https://github.com/vincens2005/lite-xl-updatechecker)\* | Automatically checks for updates and notifies you |
| [`vibe`](https://github.com/eugenpt/lite-xl-vibe)\* | VI(vim?) bindings with a hint of DOOM Emacs, for lite-xl |