mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
f4f119e2eb
commit
86aebe0f15
@ -21,7 +21,10 @@ vipy.session.initialize(project_name='calibre', src_dir=src_dir,
|
|||||||
|
|
||||||
def recipe_title_callback(raw):
|
def recipe_title_callback(raw):
|
||||||
try:
|
try:
|
||||||
return eval(raw.decode('utf-8')).replace(u' ', u'_')
|
raw = eval(raw)
|
||||||
|
if isinstance(raw, bytes):
|
||||||
|
raw = raw.decode('utf-8')
|
||||||
|
return raw.replace(u' ', u'_')
|
||||||
except:
|
except:
|
||||||
print ('Failed to decode recipe title: %r'%raw)
|
print ('Failed to decode recipe title: %r'%raw)
|
||||||
raise
|
raise
|
||||||
@ -31,4 +34,4 @@ vipy.session.add_content_browser('<leader>r', 'Recipe',
|
|||||||
vipy.session.regexp_based_matcher(r'title\s*=\s*(?P<title>.+)', 'title', recipe_title_callback))
|
vipy.session.regexp_based_matcher(r'title\s*=\s*(?P<title>.+)', 'title', recipe_title_callback))
|
||||||
EOFPY
|
EOFPY
|
||||||
|
|
||||||
nmap \log :enew<CR>:read ! bzr log -l 500 <CR>:e Changelog.yaml<CR>:e src/calibre/constants.py<CR>
|
nnoremap \log :enew<CR>:read ! bzr log -l 500 <CR>:e Changelog.yaml<CR>:e src/calibre/constants.py<CR>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user