def menu(): """Creates a global menu to access the pastebin functionality""" lisp.easy_menu_add_item(lisp.current_global_map(), ['menu-bar'], [ 'Pastebin', ('Fetch last', lisp.paste_fetch_last), ('Insert last', lisp.paste_insert_last), ('Fetch by id', lisp.paste_fetch_by_id), ('Insert by id', lisp.paste_insert_by_id), '---', ('New from buffer', lisp.paste_new_from_buffer), ('New from region', lisp.paste_new_from_region) ])
def menu(): """Creates a global menu to access the pastebin functionality""" lisp.easy_menu_add_item( lisp.current_global_map(), ['menu-bar'], ['Pastebin', ('Fetch...', lisp.paste_fetch), '---', ('New...', lisp.paste_new), ])
def menu(): """Creates a global menu to access the pastebin functionality""" lisp.easy_menu_add_item( lisp.current_global_map(), ['menu-bar'], ['Pastebin', ('Fetch last', lisp.paste_fetch_last), ('Insert last', lisp.paste_insert_last), ('Fetch by id', lisp.paste_fetch_by_id), ('Insert by id', lisp.paste_insert_by_id), '---', ('New from buffer', lisp.paste_new_from_buffer), ('New from region', lisp.paste_new_from_region) ])