vim-obsession icon indicating copy to clipboard operation
vim-obsession copied to clipboard

tagbar

Open cridemichel opened this issue 6 years ago • 1 comments

Dear developer, if 'set sessionsoptions-=blank' is used, tagbar (https://github.com/majutsushi/tagbar) is not restored on reloading the session... Below I attached a diff -u with the needed change to fix this issue,

best C.

--- obsession_orig.vim	2019-07-28 09:38:50.000000000 +0200
+++ obsession.vim	2019-07-28 09:39:00.000000000 +0200
@@ -73,7 +73,9 @@
   let sessionoptions = &sessionoptions
   if exists('g:this_obsession')
     try
-      set sessionoptions-=blank sessionoptions-=options sessionoptions+=tabpages
+      "tagbar is considered a blank windows by vim and thus it is not reopened if -=blank is used
+      set sessionoptions-=options sessionoptions+=tabpages
+      "set sessionoptions-=blank sessionoptions-=options sessionoptions+=tabpages
       execute 'mksession! '.fnameescape(g:this_obsession)
       let body = readfile(g:this_obsession)
       call insert(body, 'let g:this_session = v:this_session', -3)

cridemichel avatar Jul 28 '19 07:07 cridemichel

tag bar indeed still have problems

ssh352 avatar Jun 15 '20 09:06 ssh352