Hello to all!!
this is my first post in this list....
Is possible to add a column that display the file directory in nautilus
search in column view???
when I search a file I want to see where the search has founded it!!!!
I have wrote a small python plugin (my first) that made this (attachment) is
not beauty but works.
I have searched in the nautilus 2.23.90 source file directory and I have
found that
the column types are defined in
/libnautilus-private/nautilus-column-utilities.c
but I haven't found where the file attribute are defined (and if is defined
a "path" attribute)
another problem is that with my plugin I have to add the column every time
that I search....
there is a manner to remember the column preferences in search (and in
standard column view??)
so for example if I add the column MIME type in column view nautilus
remember this selection.
I'm a semi-newbie, I cannot program this by myself!!!
(nautilus code is huge!!)
Best Regards
Nicola Lunghi
import os, os.path
import urllib
import nautilus
class ColumnExtension(nautilus.ColumnProvider, nautilus.InfoProvider):
def __init__(self):
pass
def get_columns(self):
return nautilus.Column("NautilusPython::cartella_column",
"cartella",
"Directory",
"Get the file directory"),
def update_file_info(self, file):
if file.get_uri_scheme() != 'file':
return
filename = urllib.unquote(file.get_uri()[7:])
file.add_string_attribute('cartella', os.path.dirname(filename))
#str(os.stat(filename).st_blksize))
--
nautilus-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/nautilus-list