After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 762871 - Text file preview in icon missing
Text file preview in icon missing
Status: RESOLVED NOTABUG
Product: nautilus
Classification: Core
Component: Thumbnails
3.22.x
Other Linux
: Normal normal
: ---
Assigned To: Nautilus Maintainers
Nautilus Maintainers
Depends on:
Blocks: 697320
 
 
Reported: 2016-02-29 14:04 UTC by Pete
Modified: 2019-09-30 22:23 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Ubuntu 14.04 desktop view of text file with preview of contents (23.63 KB, image/png)
2016-03-01 15:35 UTC, Pete
Details

Description Pete 2016-02-29 14:04:56 UTC
In Ubuntu 14.04, a text file icon would permit a modest preview of the
beginning of the first few lines.

This feature is a tremendous productivity boost.

Ubuntu 16.04 no longer supports this feature.  Please bring it back.
Comment 1 André Klapper 2016-03-01 14:57:43 UTC
Please provide nautilus version information and exact steps to reproduce.
Comment 2 Pete 2016-03-01 15:33:09 UTC
GNOME nautilus 3.14.3

Note that Ubuntu uses the Unity desktop.

To reproduce the problem, right click to create a new text file icon on the desktop.  Edit with gedit adding a few lines of text.  Save and exit.

You should but do not see a preview of the first few lines of content.

See attached screenshot from Ubuntu 14.04 (GNOME nautilus 3.10.1) as an example.

Here is the Ubuntu tracking system bug:

https://bugs.launchpad.net/nautilus/+bug/1550989
Comment 3 Pete 2016-03-01 15:35:50 UTC
Created attachment 322784 [details]
Ubuntu 14.04 desktop view of text file with preview of contents

Unity desktop with GNOME nautilus 3.10.1
Comment 4 Alexandre Franke 2016-12-11 18:49:46 UTC
This is not Ubuntu specific. Confirming on Fedora 25 with GNOME 3.22.
Comment 5 Ernestas Kulik 2016-12-11 18:51:31 UTC
Also confirming on Arch with GNOME 3.22/Nautilus 3.22.2.
Comment 6 Tomáš Hnyk 2016-12-11 19:02:07 UTC
Previously, this has been broken only for files with emblems, which was tracked in bug 697320 - once this gets fixed, it must be checked if that bug got fixed too or not.
Comment 7 António Fernandes 2019-09-22 15:05:59 UTC
Top left text preview was available in GNOME 2 days, but it was never expected to work by default in GNOME 3, because the default icon theme doesn't support it, as mentioned in bug 615194.

However, for a while, nautilus still had the code for drawing the top left text of a file. So, it would still work for other icon themes which supported it. But that code was eventually dropped for the technical reasons expressed in commit 67fdde6a9ff2dcbe3ae25fa3e259e77a4951cc46.
Comment 8 António Fernandes 2019-09-22 15:42:07 UTC
On the other hand, looking at it as a user, it doesn't matter how it was implemented in the past.

It can be done in a different way. In particular, there is nothing that prevents text files from having thumbnails. So, if somebody writes a thumbnailer for text files, it should just work.
Comment 9 Tomáš Hnyk 2019-09-24 14:36:06 UTC
Ok, and where such a feature request can be made?
Comment 10 António Fernandes 2019-09-24 15:19:56 UTC
Thanks for the question, it's good to elaborate on that.

A text file thumbnailer can be made using the thumbnailing facilities of the gnome-desktop library. For anyone interested in working on this, the following blog post provides a nice introduction and walktrhough: https://tecnocode.co.uk/2013/10/21/writing-a-gnome-thumbnailer/
Comment 11 Tomáš Hnyk 2019-09-30 22:23:08 UTC
Well, my question was aiming more if it is worth it filing a new but/feature request elsewhere - this being resolve, it is most likely it will slowly fade into oblivion even with your helpful pointer.