Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Opens a new tab on every buffer write [OSX / NeoVim / Chrome] #28

Closed
chapati23 opened this issue Feb 17, 2016 · 6 comments
Closed

Opens a new tab on every buffer write [OSX / NeoVim / Chrome] #28

chapati23 opened this issue Feb 17, 2016 · 6 comments

Comments

@chapati23
Copy link

Plugin works great, only thing is that it opens a new tab on every write instead of reloading the existing one

@JamshedVesuna
Copy link
Owner

Can you provide more details about your environment?

  • What OS are you on?
  • What browser are you using?
  • What vim_markdown_preview options are you using?

@chapati23
Copy link
Author

sure:

  • OSX 10.11.3
  • Chrome 47.0.2526.106 (64-bit)
  • Vim Config:
let vim_markdown_preview_toggle=2
let vim_markdown_preview_hotkey='<C-m>'
let vim_markdown_preview_temp_file = 1

@JamshedVesuna
Copy link
Owner

Interestingly, the open util on OS X only refreshes Safari tabs. I believe OS X + Google Chrome would require an AppleScript. It would be great to include this!

Thanks for finding this 😄

@JamshedVesuna
Copy link
Owner

I have a diff coming soon to fix this.

@JamshedVesuna
Copy link
Owner

@chapati23 c56e919 should fix this issue. Let me know if you have any problems!

@chapati23
Copy link
Author

fixed it! thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants