Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Files in Tree View #135

Open
ferion11 opened this issue Apr 23, 2019 · 5 comments
Open

Files in Tree View #135

ferion11 opened this issue Apr 23, 2019 · 5 comments
Labels
enhancement New feature or request
Milestone

Comments

@ferion11
Copy link

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:

@rodlie rodlie added the enhancement New feature or request label Apr 24, 2019
@rodlie rodlie added this to the 6.3.0 milestone Jun 4, 2019
@rodlie
Copy link
Owner

rodlie commented Jun 4, 2019

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

@ferion11
Copy link
Author

ferion11 commented Jun 5, 2019

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
Copy link
Author

ferion11 commented Jun 18, 2019

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
Copy link
Author

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

@ferion11
Copy link
Author

We will need something like #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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants