Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Commits on Jun 16, 2011
  1. Merge remote-tracking branch 'greyblake/master'

Commits on May 19, 2011
  1. Sergey Potapov

    Merge pull request #11 from lukaszkorecki/file_name

    greyblake authored
    Adds name to the generated file so that preview works with QuickLook
  2. Łukasz Korecki

    adds name to the generated file so that preview works with QuickLook …

    lukaszkorecki authored
    potentialy other browsers which require full file name not starting with a .)
Commits on Apr 1, 2011
  1. Sergey Potapov
Commits on Mar 22, 2011
  1. Sergey Potapov


    greyblake authored
  2. Sergey Potapov

    Removed a space in README

    greyblake authored
  3. Sergey Potapov
  4. Sergey Potapov

    More file extension for HTML

    greyblake authored
  5. Sergey Potapov
Commits on Mar 16, 2011
  1. updating readme

  2. Fixing to work on Mac OSX

Commits on Feb 14, 2011
  1. Sergey Potapov

    fixed typos

    greyblake authored
Commits on Jan 14, 2011
  1. Sergey Potapov
  2. rdark
Commits on Jan 8, 2011
  1. rdark
  2. rdark
Commits on Jan 7, 2011
  1. Sergey Potapov
  2. Sergey Potapov

    Version 0.5 is out

    greyblake authored
  3. Sergey Potapov
  4. Sergey Potapov

    Merged decurtis-master

    greyblake authored
  5. Donald Ephraim Curtis

    Another fix for programs with arguments.

    milkypostman authored
    exec wants either multiple arguments, i.e., exec "prog", "arg1", "arg2".
    OR it wants a single string "prog arg1 arg2 ...".  On OSX and when you
    want a program to use arguments when loading, you need to consider that
    the value of `app` is not just a single word (representing an
    application).  In my case, `app="open -g -a Safari" because of OSX and
    because I want it to load in the background (-g).
  6. Double fork to ensure reaping thread via Process#detach is successful

    guns authored
    The last attempt against zombie creation was unsuccessful because the
    reaping thread was aborted along with the main vim-ruby thread.
    If we double fork the browser program we can:
     * ensure that Process#detach will correctly setup and reap the
       grandchild process
     * create browser instances that are not children of the current vim
    This is essentially what Process#detach does when it works correctly
Commits on Jan 6, 2011
  1. Sergey Potapov
Commits on Jan 5, 2011
  1. no, STDOUT and STDERR, not $stdout and $stderr

    guns authored
    Dang, I guess $stdout and $stderr no longer point to STDOUT and STDERR
    in vim. My mistake.
  2. Prevent zombies; use proper parameter escaping for exec; silence both…

    guns authored
    … $stdout, $stderr
     * Beware: if you fork, you must always reap, lest the dead rise again
       and clutter your process tables!
     * Regexp.escape is the wrong tool for shell escaping. Kernel#exec
       properly escapes parameters when given as separate arguments
     * Silence both $stdout and $stderr in the fork (not STDOUT and STDERR)
    Ruby 1.9 can handle all of the above in a nice little call:
        Process.detach spawn(program, arg1, arg2, [:out, :err] => '/dev/null')
Commits on Jan 4, 2011
  1. Sergey Potapov
  2. Sergey Potapov
  3. Donald Ephraim Curtis

    Calling the view program was not properly redirected.

    milkypostman authored
    There was some missing redirection code.  Here is how the current commit
    redirects output.
    When searching for an app to run all output is redirected to /dev/null
    as the ruby "system" command return true/false based on the return code
    fo the application.  Since we are looking at the 'which' command it will
    return 0 (true) if it finds the app and 1 (false) if it doesn't.
    When executing the viewer, stderr is redirected to stdout and stdout is
    redirected to /dev/null.  Note that stderr is _not_ redirected to
    /dev/null because of order of redirection.  However, this has the nice
    consequence of printing an error in the VIM window if the preview
    application cannot be called or has any err output.
  4. Donald Ephraim Curtis

    Support filenames with spaces.

    milkypostman authored
    Filenames need to be escaped when sending them to exec.
Commits on Jan 2, 2011
  1. Sergey Potapov
  2. Sergey Potapov
  3. Donald Ephraim Curtis

    Update to allow this to work in OSX with Safari.

    milkypostman authored
    Without an html extension, Safari will not open the resulting file.
    Also, in testing if the browser exists, it doesn't allow the addition of
    arguments on the call.  Thus, there is also a change to the way
    existance of executable is checked.  Splits the browser string and
    checks the first item.
Something went wrong with that request. Please try again.