comparison frontends/src/jp/common.py @ 2523:21d43eab3fb9

jp (common): assure nosplitright in default commands for edition with vim
author Goffi <goffi@goffi.org>
date Fri, 16 Mar 2018 16:59:16 +0100
parents 984792a451bc
children 772447ec070f
comparison
equal deleted inserted replaced
2522:95c31756944c 2523:21d43eab3fb9
34 import subprocess 34 import subprocess
35 import glob 35 import glob
36 import shlex 36 import shlex
37 37
38 # defaut arguments used for some known editors (editing with metadata) 38 # defaut arguments used for some known editors (editing with metadata)
39 VIM_SPLIT_ARGS = "-c 'vsplit|wincmd w|next|wincmd w'" 39 VIM_SPLIT_ARGS = "-c 'set nospr|vsplit|wincmd w|next|wincmd w'"
40 EMACS_SPLIT_ARGS = '--eval "(split-window-horizontally)"' 40 EMACS_SPLIT_ARGS = '--eval "(split-window-horizontally)"'
41 EDITOR_ARGS_MAGIC = { 41 EDITOR_ARGS_MAGIC = {
42 'vim': VIM_SPLIT_ARGS + ' {content_file} {metadata_file}', 42 'vim': VIM_SPLIT_ARGS + ' {content_file} {metadata_file}',
43 'gvim': VIM_SPLIT_ARGS + ' --nofork {content_file} {metadata_file}', 43 'gvim': VIM_SPLIT_ARGS + ' --nofork {content_file} {metadata_file}',
44 'emacs': EMACS_SPLIT_ARGS + ' {content_file} {metadata_file}', 44 'emacs': EMACS_SPLIT_ARGS + ' {content_file} {metadata_file}',