Open txt inside vivaldi



  • Hi, i have been looking in the forum and coudnt find any answer... is there any way to open txt files (or any other btw) inside vivaldi. i dont care if it download the file or not, i just wanna see the file without opening an external app. It works ok for pdf files.


  • Moderator

    @AlesPG Does the file have to be on the web necessarily?



  • menu file/open file (ctrl-O)



  • @lamarca i don't think i understand you.
    the ideal would be to have the choice of downloading the file or opening it directly, but pdfs doesnt work that way either.

    so, i just ask for the same functionality that the pdf files: the posibility of opening the files inside the browser from the downloads list, double clicking or right clicking -> open file



  • @iAN-CooG it works that way! if i download the file and open it from the folder using menu -> file -> open file, it is opened inside vivaldi, so i presume not being able to do it from the downloads panel is a bug, right? behaviour should be the same


  • Moderator

    @AlesPG said in Open txt inside vivaldi:

    if i download the file and open it from the folder using menu -> file -> open file, it is opened inside vivaldi, so i presume not being able to do it from the downloads panel

    text files are always opened in Vivaldi when the content type sent by server is correct.

    Please, it would be easier to see what you mean if you give us a link to test.



  • @Gwen-Dragon ok, i will try.

    from the link https://sample-videos.com, download (one click download -> click)

    Sample PDF
    Sample Text File

    both are saved in your default folder and they are in the downloads panel (none is opened directly).

    Now, double click on the pdf, and double click on the txt, from the downloads panel.

    In my case, the pdf opens in a new vivaldi tab, but the txt opens gedit.

    If you go to menu -> open file and try to open both files, both are opened in a vivaldi tab.


  • Moderator

    @AlesPG The data is not a direct link and served in background by some Javascript. Why the PDF can be opened by double-click and the TXT not, i do not know.

    May be this issue is a bug.
    Please read how to Report a bug for Vivaldi carefully and then report the bug to Vivaldi bugtracker.



  • Either the server is not serving the file with proper content type or Vivaldi isn't handling content type at all. Anyway all you have to do is to drag the link in a tab or in the new tab "+" icon to open it in a new tab.


  • Moderator

    If i use the URLs shown after download in download manager panel and pste them in address field, the files are opened in a Vivaldi tab.



  • @Gwen-Dragon yeah, also open link in new tab works, only direct click forces the download.



  • Thank you for your feedback, i have been able to reproduce everything you have said. I will report the bug to the vivaldi team, because txt works every way except opening from the downloads panel, and thats not right.



  • @AlesPG the sample download links on the https://sample-videos.com page use the download="filename" attribute in the html to advise the browser that the link is for downloading, not inline viewing.

    The quickest way to see if text files are view-able in your browser is to check out the robots.txt file (on most websites) like on this forum :
    https://forum.vivaldi.net/robots.txt (this link doesn't work directly from this forum - you'll have to drop it in your address bar)

    I have made a quick page with text links, with and without the "download" attribute.
    The first link should open in your browser:
    https://omi.nz/drp/tst/


  • Vivaldi Translator

    @AlesPG You are missing the point, and how the download manager works.
    It is not a bug if the browser is doing what the website intended.
    The site designer added the tag to force it to DL so you can (one click download)

    Any files in the DL manager will not behave as if they are online.
    Now they are downloaded when you double-click it will do the default action for dealing with a local file.

    If you want to get Vivaldi to ignore the instruction do download it, just copy the link for the actual text file and paste it in the address bar. It will open perfectly.
    Anything you open in the browser window will not list in the DL manager.


  • Moderator

    @AlesPG said in Open txt inside vivaldi:

    i don't think i understand you.
    the ideal would be to have the choice of downloading the

    Localhost, was the first thing that cross my mind after reading the words "open txt".
    Magnet needs an appl. The next reply also has the same idea.
    Why not using the Download Web Panel

    Edited: Crtl+J >> choose the file in the list and double click



  • @Dr-Flay "Now they are downloaded when you double-click it will do the default action for dealing with a local file."

    Thats not true, if i double click a pdf from the downloads panel it opens inside vivaldi, if i double click a txt, it opens an external tool.

    it is impossible open a txt inside vivaldi from the downloads panel, but it is possible to open a pdf, does it only happens to me?



  • The question is ... if you go to your file manager and double-click a PDF file there, what program is opened? If it opens in Vivaldi, then you have your answer. (Yes, you could set Vivaldi as your default application to open all text files - but do you want a viewer or an editor as default?)



  • it is impossible open a txt inside vivaldi from the downloads panel, but it is possible to open a pdf, does it only happens to me?

    @sgunhouse This is normal. There is an option in settings (search for plugins) to enable/disable the internal PDF viewer. So for PDF there is an exception.
    The rest of the file types, txt, png, zip etc. open in the application used to open by default. Oh soz, the other exceptions are web browser files (html mhtml etc.)



  • @sgunhouse pdfs open in a external tool, vivaldi is not the default app to see pdfs.

    @sirjeff That may be the reason, that the pdfs are actually the exception to open files.
    Thats too bad, i would like to open simple files (txt, png, etc...) without leaving the browser.



  • @AlesPG said in Open txt inside vivaldi:

    i would like to open simple files (txt, png, etc...) without leaving the browser

    Please test the links at : https://omi.nz/drp/tst/
    Where it says "Should open in browser" means exactly that. If it doesn't do so then there is mos-def a bug.


 

Looks like your connection to Vivaldi Forum was lost, please wait while we try to reconnect.