| Age | Commit message (Collapse) | Author |
|
|
|
|
|
After writing to the file, our keyboard shortcut opens a Tmux pane with
a Vim and our input message available for editing.
If we're not in Tmux, we should print an error message. Need to rewrite
that to print a real Irssi message.
|
|
Instead of writing the input message to a file on every key press, only
write when Ctrl-X is pressed. This will be our command for opening Vim.
|
|
Now instead of printing the current input to the Irssi window, write it
to a script-specific file.
The filename is inspired by Git. I figure we'll probably want to remove
the file when we're done with it. Debated between creating a real temp
file and using this one. We'll decide that later.
|
|
Learned about the Perl `our` keyword from
https://github.com/shabble/irssi-docs/wiki/Guide#preamble which
recommends using it. This allows us to eliminate the `use vars` line.
Neat.
|
|
Yes! Managed to read the current input line contents. Print this out on
every key press.
Thanks to these resources:
Key press signal:
https://github.com/shabble/irssi-docs/wiki/Signals#gui-readlinec
Getting input line contents:
https://github.com/shabble/irssi-docs/wiki/Irssi#getting-the-input-field-contents
https://github.com/irssi/scripts.irssi.org/blob/master/scripts/per_window_prompt.pl
|