Hello,

I'm wondering if there's a possibility to add a custom column to the Detailed 
view, but only when displaying a specified directory?

I've already figured out how to add a column without taking current directory 
into consideration, and figured how to display my text in this column. But I'd 
like to display these two columns only when, for example, current directory 
contains "foobar" string, so, for example:

* /home/user - would display normal set of columns (Name, Description, Size, 
Modified),
* /home/user/foobar (and every subdir) - would display Name, Description, 
MyColumn1, MyColumn2, MyColumn3 (without Size, Modified - also I'd provide by 
own text for these columns in the implementation of 
fm_folder_model_get_value()).

Is this even possible without changing architecture of PCManFM?

I've tried to do some hooking inside _check_tree_columns_defaults(), and walk 
from FmStandardView, through FmFolder, to FmPath, but it appears that the 
current directory model is changed two times - one time to clear the contents, 
and the second one to fill the directory items up. The second model change 
doesn't have a valid FmPath, so I don't know how to query current directory 
name, to be able to choose which column set to apply. Does this approach make 
any sense? ;) 

It may be the case that I'm not supposed to query FmFolder's FmPath in the 
column creation logic, but in this case I'm not sure I even know how to make 
column creation dependent on current directory.

Thanks for any info,
- a1




------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
_______________________________________________
Lxde-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/lxde-list

Reply via email to