Code Monkey home page Code Monkey logo

Comments (7)

jonashaag avatar jonashaag commented on May 22, 2024 1

No, what I want is that this plugin opens a new window for preview and does not use the window where I have all my usual tabs going on, because I always browse in full screen but want the preview to be non full screen.

from vim-markdown-preview.

JamshedVesuna avatar JamshedVesuna commented on May 22, 2024

What operating system are you using?

from vim-markdown-preview.

jonashaag avatar jonashaag commented on May 22, 2024

OS X

from vim-markdown-preview.

JamshedVesuna avatar JamshedVesuna commented on May 22, 2024

Is Safari your default web browser? If not, then this won't work. If so, can you provide me more details about your system and vim version?

This plugin assumes if you aren't using Google Chrome, then your default browser is the one you specify in vim_markdown_preview_browser. See this.

I'm happy to accept a PR that fixes this issue 😄

from vim-markdown-preview.

jonashaag avatar jonashaag commented on May 22, 2024

Default browser is Google Chrome, but I'd like to use Safari for Markdown preview because it annoys me that the preview window is always opened in a new tab in the existing Google Chrome window rather than a new window entirely.

from vim-markdown-preview.

JamshedVesuna avatar JamshedVesuna commented on May 22, 2024

As of now, you'd have to change your default browser to Safari in order for VMP to work as you describe. This is because it's tricky to open a specific browser and refresh a specific page in the background on the cli (this would require browser specific commands, rather than simply opening the html file).

I'm more than happy to accept a PR that has browser specific functionality!

always opened in a new tab

This sounds like a bug. If you set your default browser to Google Chrome (and remove the vim_markdown_preview_browser you set), currently an AppleScript finds the tab that has the markdown preview and refreshes that. Can you provide more details about your system, browser, and Vim version?

from vim-markdown-preview.

JamshedVesuna avatar JamshedVesuna commented on May 22, 2024

If you'd like, you can modify the AppleScript to open a new window and refresh that. Unfortunately, this sounds like a specific use case, so it won't be supported unless you make a PR with a flag to support this. Closing this out for now, but feel free to reopen.

from vim-markdown-preview.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.