A neovim plugin to help display your latest output from the plover tapey tape Plover stenography plugin.
There are two modes that this plugin can work with:
- Status line showing the last line of output
- Buffer split showing live updates and more than one line of output
Requires neovim version 0.8.0
use('derekthecool/plover-tapey-tape.nvim')
Plug 'derekthecool/plover-tapey-tape.nvim'
Call the setup function with your desired settings.
require('plover-tapey-tape').setup() -- Use all default settings
require('plover-tapey-tape').setup({ -- Use custom settings (defaults are shown)
filepath = 'auto',
open_method = 'vsplit',
vertical_split_height = 9,
horizontal_split_width = 54,
steno_capture = '|(.-)|',
suggestion_notifications = {
enabled = true,
},
status_line_setup = {
enabled = true,
additional_filter = '(|.-|)',
},
}
If the status_line_setup feature is enabled then you can access the global lua
variable TapeyTape
.
If you use lualine.nvim you can put global variables into your settings easily.
lualine_c = {'TapeyTape'},
TODO: show how to add to status line without lualine.
No mappings are set by the plugin. Here are some suggested mappings for available commands.
vim.keymap.set('n', '<leader>tt', require('plover-tapey-tape').toggle) -- open tape window
vim.keymap.set('n', '<leader>ts', require('plover-tapey-tape').stop) -- stop plugin
This demo shows the following features:
- Running the toggle command to open the tape window
- Status line showing the steno keys from the variable
TapeyTape
- Suggestions pop up notifications. When I write
good morning
4 suggestions are displayed.
- Enable auto discovery of tapey-tape log file. Supports Linux, WSL, Windows, Mac.
- Draw a steno keyboard in realtime that show your keys highlighted
- Show notifications for suggestions
- Autocommand to close file watcher when neovim is closing
- Autocommand to disable autoscrolling when inside tapey-tape log buffer
- Autocommand to enable autoscrolling when outside tapey-tape log buffer