{"action":"created","issue":{"url":"https://api.github.com/repos/lervag/vimtex/issues/520","repository_url":"https://api.github.com/repos/lervag/vimtex","labels_url":"https://api.github.com/repos/lervag/vimtex/issues/520/labels{/name}","comments_url":"https://api.github.com/repos/lervag/vimtex/issues/520/comments","events_url":"https://api.github.com/repos/lervag/vimtex/issues/520/events","html_url":"https://github.com/lervag/vimtex/pull/520","id":170400583,"number":520,"title":"Add warning if .bib file hasn't been opened from .tex file","user":{"login":"benutzer193","id":9975220,"avatar_url":"https://avatars.githubusercontent.com/u/9975220?v=3","gravatar_id":"","url":"https://api.github.com/users/benutzer193","html_url":"https://github.com/benutzer193","followers_url":"https://api.github.com/users/benutzer193/followers","following_url":"https://api.github.com/users/benutzer193/following{/other_user}","gists_url":"https://api.github.com/users/benutzer193/gists{/gist_id}","starred_url":"https://api.github.com/users/benutzer193/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benutzer193/subscriptions","organizations_url":"https://api.github.com/users/benutzer193/orgs","repos_url":"https://api.github.com/users/benutzer193/repos","events_url":"https://api.github.com/users/benutzer193/events{/privacy}","received_events_url":"https://api.github.com/users/benutzer193/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2016-08-10T12:03:42Z","updated_at":"2016-08-11T08:30:36Z","closed_at":"2016-08-10T18:24:39Z","pull_request":{"url":"https://api.github.com/repos/lervag/vimtex/pulls/520","html_url":"https://github.com/lervag/vimtex/pull/520","diff_url":"https://github.com/lervag/vimtex/pull/520.diff","patch_url":"https://github.com/lervag/vimtex/pull/520.patch"},"body":"I am not completely satisfied with the PR, because the keybindings stay if you open a .tex document after opening the .bib file and open the bib file from that .tex document without closing the buffer.\r\n\r\n\r\nAs an alternative I tried adding\r\n\r\n```\r\nif exists('g:vimtex_data[get(b:, \"vimtex_id\")].root')\r\n  finish\r\nendif\r\n```\r\n\r\nbefore\r\n\r\n```\r\nif exists('b:did_ftplugin')\r\n  finish\r\nendif\r\nlet b:did_ftplugin = 1\r\n```\r\n(I could add the keybinding warnings this way as well of course...)\r\n\r\nbut it seems bib.vim is only parsed once, when the buffer opens.\r\nDo you have a idea to fix this issue or  do you think it doesn't matter?"},"comment":{"url":"https://api.github.com/repos/lervag/vimtex/issues/comments/239101483","html_url":"https://github.com/lervag/vimtex/pull/520#issuecomment-239101483","issue_url":"https://api.github.com/repos/lervag/vimtex/issues/520","id":239101483,"user":{"login":"benutzer193","id":9975220,"avatar_url":"https://avatars.githubusercontent.com/u/9975220?v=3","gravatar_id":"","url":"https://api.github.com/users/benutzer193","html_url":"https://github.com/benutzer193","followers_url":"https://api.github.com/users/benutzer193/followers","following_url":"https://api.github.com/users/benutzer193/following{/other_user}","gists_url":"https://api.github.com/users/benutzer193/gists{/gist_id}","starred_url":"https://api.github.com/users/benutzer193/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benutzer193/subscriptions","organizations_url":"https://api.github.com/users/benutzer193/orgs","repos_url":"https://api.github.com/users/benutzer193/repos","events_url":"https://api.github.com/users/benutzer193/events{/privacy}","received_events_url":"https://api.github.com/users/benutzer193/received_events","type":"User","site_admin":false},"created_at":"2016-08-11T08:30:35Z","updated_at":"2016-08-11T08:30:35Z","body":"yes, works for me!"}}
{"actor":{"display_login":"benutzer193"}}