None
closed
nobody
None
2018-04-16
2018-03-25
Anonymous
No

please add built-in preview for text formats, with URL detection - it's quite cumbersome to must open a file in a separate app/window to be able to read short text and click on a link

Discussion

  • medoc
    medoc
    2018-03-26

    please be more specific. Why does not the current Preview work for you ? For what types of documents ?

     
  • Anonymous
    Anonymous
    2018-04-01

    I have short texts (plain text, markdown,...) with links and all I want is to be able to click on the link to be opened by default browser with as low number of clicks and key presses as possible. Now I have to click on preview, select link, copy it, switch to browser, paste it, hit enter - that's lot of work when I'm searching for some info.

     
  • medoc
    medoc
    2018-04-07

    Thanks, I see now.

    This makes sense but also seems a bit complicated.

    One other possible approach would be to set a Viewer for these files which does what you want.

    For example xfce4-terminal detects HTTP links, and opens them with the default browser when you middle click.

    So if you go to Preferences->GUI configuration->User Interface->Editor Applications

    Then select the MIME types which should be affected (e.g. text/plain), click "exception to desktop preferences", and then enter the following line as action:

    xfce4-terminal -e "cat %f /dev/tty"

    Applying, then clicking "Open" on a text/plain result should display the text in the terminal, with HTTP link detection (middle-click to open the links).

    the "/dev/tty" is so that the cat command stays around after displaying the text, you can exit the terminal with ^C or ^D

    This may be a little simplistic, but you could also use a shell script instead of directly executing 'cat', maybe for deciding what to do depending on the size of the file or whatever.

    Please tell me if this works for you.

     
  • medoc
    medoc
    2018-04-16

    • status: open --> closed
    • milestone: -->
     
  • medoc
    medoc
    2018-04-16

    I finally implemented link activation inside the preview screen.

     

Cancel   Add attachment