You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 15, 2026. It is now read-only.
It may be better to implement custom keymaps for plugins
to use virtual events like:
class ExampleEvent(object):
def __init__(self, area):
self.area = area
area.install(('BETA', '<<ExampleEvent.OutputData>>', self.output_data))
area.event_add('<<ExampleEvent.OutputData>>', '<Key-h>')
def output_data(self, e):
self.area.insert('end', 'This is nice')
install = ExampleEvent
or it could be.
"""
Overview
========
Just a test to demonstrate virtual events.
Keycommands
===========
Mode: BETA
Event: <<ExampleEvent.OutputData>>, <Key-h>
Description: insert the text 'This is nice' on the focused
areavi.
"""
class ExampleEvent(object):
def __init__(self, area):
self.area = area
area.install(('BETA', ('<<ExampleEvent.OutputData>>', '<Key-h>', ...), self.output_data))
# area.event_add('<<ExampleEvent.OutputData>>', '<Key-h>')
def output_data(self, e):
self.area.insert('end', 'This is nice')
install = ExampleEvent