kujiu (@uberwald)
8ca6287fb1
-> Passwords in KeePassXC (access by keyring) -> Neomutt + Aerc (mail) -> vdirsyncer + khal + khard (calendar and contacts) zsh -> fish -> poezio (XMPP) -> newsboat (RSS with FreshRSS) -> toot (Mastodon client) vim -> neovim (with lunarvim) -> nvimpager (pager based on neovim) -> konsole With Nightfox theme.
49 lines
1.1 KiB
Python
49 lines
1.1 KiB
Python
"""
|
|
This plugin adds a command (that can be bound to a key) that adds a random
|
|
number of dots in the input, making you look depressed, or overly thinking...
|
|
|
|
Installation
|
|
------------
|
|
Load the plugin.::
|
|
|
|
/load pointpoint
|
|
|
|
Then use the command: ::
|
|
|
|
/pointpoint
|
|
|
|
But since the goal is to be able to add the dots while typing a message,
|
|
entering a command is not really useful. To be useful, this plugin needs to
|
|
be used through a bound key, for example like this: ::
|
|
|
|
/bind M-. _exc_pointpoint
|
|
|
|
You just need to press Alt+. and this will insert dots in your message.
|
|
|
|
Command
|
|
-------
|
|
|
|
.. glossary::
|
|
|
|
/pointpoint
|
|
**Usage:** ``/pointpoint``
|
|
|
|
…
|
|
|
|
|
|
"""
|
|
|
|
from poezio.plugin import BasePlugin
|
|
from random import randrange
|
|
|
|
|
|
class Plugin(BasePlugin):
|
|
def init(self):
|
|
self.api.add_command(
|
|
'pointpoint',
|
|
self.command_pointpoint,
|
|
help='Insert a random number of dots in the input')
|
|
|
|
def command_pointpoint(self, args):
|
|
for i in range(randrange(8, 25)):
|
|
self.core.current_tab().input.do_command(".")
|