Commits

ZyX_I committed 217ab48

Made :AuAnnotate work

  • Participants
  • Parent commits 9fb82f8

Comments (0)

Files changed (1)

     "▶2 Объявление переменных
     execute frawor#Setup('0.0', {'@/commands': '0.0',
                 \               '@/functions': '0.0',
-                \                      '@/os': '0.0',
+                \                      '@/os': '0.1',
                 \                  '@/python': '0.0',
                 \            '@/autocommands': '0.0',
                 \               '@/resources': '0.0',}, 0)
 function s:F.comm.hasrepo(path)
     return s:_r.os.path.isdir(s:_r.os.path.join(a:path, '.hg'))
 endfunction
-"▶3 comm.repopath
 "▶3 comm.getrepo
 function s:F.comm.getrepo(path)
     if empty(a:path)
 endfunction
 "▶3 annfunc
 function s:annfunc.function(...)
-    let repo=s:F.comm.getrepo(get(a:000, 0, 1))
+    let repo=s:F.comm.getrepo('')
+    let file=bufname('%')
+    let file=s:_r.os.path.relpath(file, repo.path)
+    setlocal scrollbind
+    execute 'leftabove 42vsplit '.fnameescape(
+                \'aurum://annotate:'.escape(repo.path, '\:').
+                \                ':.:'.file)
+    setlocal scrollbind
 endfunction
 "▶3 Post aurum resource
 call s:_f.postresource('aurum', {'bufvars': s:bufvars}, 1)