Menu

Ctrl+Enter not opening web browser.

Viki
John Kim
2013-04-23
2013-04-27
  • John Kim

    John Kim - 2013-04-23

    Hello!

    Viki finally works after a full install, but something doesn't work...

    [[http://deplate.sourceforge.net/Markup.html][Viki syntax]]

    When I press Ctrl+Enter when my cursor is on it, it doesn't open up a web browser as it should. How can I fix this?

     
    • Tom Link

      Tom Link - 2013-04-23

      When I press Ctrl+Enter when my cursor is on it, it doesn't open up a
      web browser as it should. How can I fix this?

      Which OS do you use? Please check out the value of g:vikiOpenUrlWith_ANY
      and set it to a value that is suitable for your system.

      HTH

       
  • John Kim

    John Kim - 2013-04-24

    I am using Ubuntu Raring Daily Build (13.04). A small mention, 13.04 stable will be released next week.

    Please check out the value of g:vikiOpenUrlWith_ANY

    I'm not sure how to check out arguments, so I did 'echo g:vikiOpenUrlWith_ANY'.

    The result was: exec 'silent !xdg-open '. shellescape('%{URL}'). I don't see any numbers... Did I get it wrong?

     
    • Tom Link

      Tom Link - 2013-04-24

      The result was: exec 'silent !xdg-open '. shellescape('%{URL}'). I
      don't see any numbers... Did I get it wrong?

      Please check on the command line (terminal) if xdg-open is available.
      Either it isn't installed (I use ubuntu 12.04 where it is by default
      IIRC) or something else is the problem.

       
    • John Kim

      John Kim - 2013-04-25

      My bad. Actually, it's released today. :)

       
  • John Kim

    John Kim - 2013-04-24

    It is available.

    john@jkkotux:~$ xdg-open
    xdg-open - opens a file or URL in the user's preferred application
    
    Synopsis
    
    xdg-open { file | URL }
    
    xdg-open { --help | --manual | --version }
    
    Use 'man xdg-open' or 'xdg-open --manual' for additional info.
    

    Probably, something else is the problem.

     

    Last edit: John Kim 2013-04-24
    • Tom Link

      Tom Link - 2013-04-25

      xdg-open - opens a file or URL in the user's preferred application
      Well, it's hard to tell from a distance. You'd have to

       :set verbosefile=viki.log
       :20verb call viki#MaybeFollowLink(0,1)
       :set verbosefile&
      

      and send me viki.log per personal mail.

      I assume you don't have g:vikiOpenUrlWith_http defined? It would also be
      interesting to know what happens when you set g:vikiOpenUrlWith_ANY to
      "echom '%{URL}'" to find out if viki even gets there without skimming
      through the log.

       
  • John Kim

    John Kim - 2013-04-26

    I assume you don't have g:vikiOpenUrlWith_http defined? It would also be
    interesting to know what happens when you set g:vikiOpenUrlWith_ANY to
    "echom '%{URL}'" to find out if viki even gets there without skimming
    through the log.

    Sorry, but I didn't understand that.

    and send me viki.log per personal mail.

    I would like to send it, but I don't know how to find your contact or send a private message.

     
    • Tom Link

      Tom Link - 2013-04-27

      I would like to send it, but I don't know how to find your contact or
      send a private message.


      Ctrl+Enter not opening web browser.
      https://sourceforge.net/p/deplate/discussion/700962/thread/c43b098e/?limit=25#16c8

      The e-mail is in the source file.

      As a side note, you might also want to check out vimwiki. For new users,
      I'd rather recommend to use something that uses markdown syntax since
      there are many converters around for that.

      Regards,
      Tom

       

Log in to post a comment.