comparison frontends/src/jp/cmd_blog.py @ 1873:6ec54626610c

jp (blog): add to EDITOR_ARGS_MAGIC parameters for (x)emacs and nano
author souliane <souliane@mailoo.org>
date Thu, 03 Mar 2016 17:02:23 +0100
parents df1ca137b0cb
children 658824755a0c
comparison
equal deleted inserted replaced
1872:df1ca137b0cb 1873:6ec54626610c
40 "XHTML": "xhtml", 40 "XHTML": "xhtml",
41 "markdown": "md" 41 "markdown": "md"
42 } 42 }
43 43
44 # defaut arguments used for some known editors 44 # defaut arguments used for some known editors
45 VIM_SPLIT_ARGS="-c 'vsplit|wincmd w|next|wincmd w'" 45 VIM_SPLIT_ARGS = "-c 'vsplit|wincmd w|next|wincmd w'"
46 EMACS_SPLIT_ARGS = '--eval "(split-window-horizontally)"'
46 EDITOR_ARGS_MAGIC = { 47 EDITOR_ARGS_MAGIC = {
47 'vim': VIM_SPLIT_ARGS + ' {content_file} {metadata_file}', 48 'vim': VIM_SPLIT_ARGS + ' {content_file} {metadata_file}',
48 'gvim': VIM_SPLIT_ARGS + ' --nofork {content_file} {metadata_file}', 49 'gvim': VIM_SPLIT_ARGS + ' --nofork {content_file} {metadata_file}',
50 'emacs': EMACS_SPLIT_ARGS + ' {content_file} {metadata_file}',
51 'xemacs': EMACS_SPLIT_ARGS + ' {content_file} {metadata_file}',
52 'nano': ' -F {content_file} {metadata_file}',
49 } 53 }
50 54
51 CONF_SYNTAX_EXT = 'syntax_ext_dict' 55 CONF_SYNTAX_EXT = 'syntax_ext_dict'
52 BLOG_TMP_DIR="blog" 56 BLOG_TMP_DIR="blog"
53 # key to remove from metadata tmp file if they exist 57 # key to remove from metadata tmp file if they exist