qtfm icon indicating copy to clipboard operation
qtfm copied to clipboard

Files in Tree View

Open ferion11 opened this issue 6 years ago • 5 comments

I would like to see a Tree View (List/Tree) for the files like we have on Dolphin (file tree view) and Nautilus (List View - Navigate folders in a tree). From Qt Widgets doc example:

ferion11 avatar Apr 23 '19 19:04 ferion11

I will try to get this fixed for 6.3, need to go through some old legacy code ...

rodlie avatar Jun 04 '19 01:06 rodlie

I have made some usable in https://github.com/ferion11/qtfm 1- Is a custom qtreeview for better selection: dfmqtreeview (cpp + h). 2- Replace mainwindow detailTree type from qtreeview to dfmqtreeview, and the options: detailTree->setRootIsDecorated(true); detailTree->setItemsExpandable(true); detailTree->setUniformRowHeights(true); detailTree->setAlternatingRowColors(true);

I'm using/testing and improve it. It is usable now. At least I like it more than the old detailTree using the default qtreeview. But is my opinion, then i don't make a pull request. Fell free to use the code to implement the official version.

ferion11 avatar Jun 05 '19 13:06 ferion11

I forgot to said because I had already changed the local configuration that I use, but "customActions" works in the treeview. The only change to be made is from "%f" to "%F" because we need the full path. My working customActions that I use: [customActions] 0000="tar.gz,tar.bz2,tar.xz,tar,tgz,tbz,tbz2,txz,7z,rar,zip,gz,bz2,xz", Extract to ..., package-x-generic, xarchiver -e %F 0001=, Add to archiver ..., package-x-generic, xarchiver -c %F 0002="bmp,png,gif,jpg,jpeg", Edit with mtpaint, applications-graphics, mtpaint %F 0003=jar, Java -jar ..., application-x-java-jnlp-file, java -jar %F 0004="exe,EXE", Execute on wine, emblem-system, wine %F 0005=, Meld Compare ..., meld-version-control, meld %F

ferion11 avatar Jun 18 '19 09:06 ferion11

Now the selection is like this (more natural): selection

ferion11 avatar Jun 21 '19 16:06 ferion11

We will need something like https://github.com/rodlie/qtfm/pull/144 for the QListView too (normal list view). If in the normal list view, we have 2 or more column, select files on the first column can't be done using the elastic band (because we don't have space to start the mouse selection).

ferion11 avatar Jul 16 '19 16:07 ferion11