def open_scratchpad(): scratchpad = db.get_scratchpad() new_content = ui.ask_from_editor(scratchpad.content) scratchpad.content = new_content
def open_scratchpad(): old_content = db.get_scratchpad_content() new_content = ui.ask_from_editor(old_content) db.set_scratchpad_content(new_content)