From f5dc95ab56743376cd5db8aa3bd82ded96688e26 Mon Sep 17 00:00:00 2001 From: clach04 Date: Tue, 19 Dec 2023 17:16:31 -0800 Subject: [PATCH] ptpyvim - Attempt to make quiting without saving easier See https://github.com/prompt-toolkit/pyvim/issues/148 --- puren_tonbo/tools/ptpyvim.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/puren_tonbo/tools/ptpyvim.py b/puren_tonbo/tools/ptpyvim.py index 63925a0..d970bfb 100755 --- a/puren_tonbo/tools/ptpyvim.py +++ b/puren_tonbo/tools/ptpyvim.py @@ -20,12 +20,12 @@ from pyvim.io.backends import ENCODINGS, _auto_decode from pyvim.io import EditorIO +import pyvim.help import puren_tonbo - is_py3 = sys.version_info >= (3,) @@ -174,6 +174,8 @@ def edit(locations, password=None): GZipFileIO(), # Should come before FileIO. FileIO(), ] # TODO use existing and inject PureTonboFileIO? where?/how? + pyvim.help.HELP_TEXT += '\nTo quit issue\n\n :qa\n\nSee https://github.com/prompt-toolkit/pyvim/issues/148' + pyvim.editor.HELP_TEXT = pyvim.help.HELP_TEXT # see run_pyvim.py default_pyvimrc = os.path.expanduser('~/.pyvimrc')