Bug 64720 - Provide option to show files ordered by inclusion in the project view
Summary: Provide option to show files ordered by inclusion in the project view
Status: REOPENED
Alias: None
Product: kile
Classification: Applications
Component: general (other bugs)
Version First Reported In: unspecified
Platform: Compiled Sources Linux
: NOR wishlist
Target Milestone: ---
Assignee: Michel Ludwig
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-09-22 11:34 UTC by A T Somers
Modified: 2023-01-08 20:29 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description A T Somers 2003-09-22 11:34:33 UTC
Version:           1.6b1 (using KDE 3.1.4)
Installed from:    compiled sources
Compiler:          gcc version 2.95.3 20010315 (SuSE)
OS:          Linux (i686) release 2.4.21

The files listed in the project tree are not ordered correctly. They seem to be in the reverse order that they are included. 

Example:
I am using a file called verslag.tex, that defines they layout of my document and includes chapters (and a hyphenation file). Furthermore, I have a .bib file for my references. The resulting tree is layed out like this:

- Projectname
  - Projectname.kilepr (what is this doing here?!)
  - verslag.bib
  - verslag.tex
    - chapter_3.tex
    - chapter_2.tex
    - chapter_1.tex
    - hyphenation.tex

I would have expected this tree:

- Projectname
  - verslag.tex
    - chapter_1.tex
    - chapter_2.tex
    - chapter_3.tex
    - hyphenation.tex
  - verslag.bib
Comment 1 A T Somers 2003-09-22 11:36:20 UTC
The bugsystem stripped my spaces before the tree, so here I have replaced them 
with underscores: 
 
- Projectname 
__- Projectname.kilepr (what is this doing here?!) 
__- verslag.bib 
__- verslag.tex 
____- chapter_3.tex 
____- chapter_2.tex 
____- chapter_1.tex 
    - hyphenation.tex 
 
I would have expected this tree: 
 
- Projectname 
__- verslag.tex 
____- chapter_1.tex 
____- chapter_2.tex 
____- chapter_3.tex 
____- hyphenation.tex 
__- verslag.bib 
 
  
Comment 2 Jeroen Wijnhout 2003-09-22 12:22:09 UTC
Subject: Re:  New: Files in Files & Projects sidebar tab are not ordered correctly

On Monday 22 September 2003 11:34, A T Somers wrote:
> The files listed in the project tree are not ordered correctly. They seem
> to be in the reverse order that they are included.
>
> Example:
> I am using a file called verslag.tex, that defines they layout of my
> document and includes chapters (and a hyphenation file). Furthermore, I
> have a .bib file for my references. The resulting tree is layed out like
> this:
>
> - Projectname
>   - Projectname.kilepr (what is this doing here?!)
>   - verslag.bib
>   - verslag.tex
>     - chapter_3.tex
>     - chapter_2.tex
>     - chapter_1.tex
>     - hyphenation.tex

Is alphabetical ordering ok too?

best,
Jeroen

Comment 3 A T Somers 2003-09-22 12:43:32 UTC
Subject: Re:  Files in Files & Projects sidebar tab are not ordered correctly

> Is alphabetical ordering ok too?
It would be, yes, but order of inclusion would be more logical to me. It seems 
it allready is in that order, except it is in reverse. 

Andr
Comment 4 Jeroen Wijnhout 2003-09-23 21:32:00 UTC
Implemented alphabetical ordering (I think this is more useful when you have a
lot of files).

best,
Jeroen
Comment 5 Martin Scharrer 2004-11-15 10:33:08 UTC
> Implemented alphabetical ordering (I think this is more useful when you have
> a lot of files). 
But ordering by the order of inclusion is more useful by smaller or well organised projects. 
Is it possible to implement a setting to select the ordering behaviour?

best,
Martin
Comment 6 gero 2005-04-29 16:22:17 UTC
I agree with A.T. and Martin that the order of inclusion would make a lot more sense. It is also more intuitive. If you want to search alphabetically you can simply go to the sidebar and type the first character.
Moreover, could the non-tex files be grouped by file type? That would, for instance, keep the BibTeX files together. Currently, I have some BibTex files above the TeX block and some below, which is a bit strange...
Comment 7 Jeroen Wijnhout 2005-06-06 20:35:37 UTC
The point here is that the structure view already provides a way to see the files in the order of inclusion (ok, it is not exactly the same as having the project view to show them in this order). Still I will reopen, so that people can vote for it again.

best,
Jeroen
Comment 8 gero 2005-06-23 01:09:13 UTC
> the structure view already provides a way to see the files in the order of inclusion

That's right, but there you only see the files that are included in the file you are currently viewing in the editor. Typically, that will not be the master file but rather one of the subordinate included files.
What I need is a sidebar with all files in all open projects, ordered by inclusion. This is because I understand the structure of a document not by alphabetical order of file names but by chapter / section order.

Maybe the best solution would be to follow Martin's suggestion of having this as an option in the preferences?

> Still I will reopen, so that people can vote for it again.
Great--thanks a lot! :-)

Cheers,
gero.
Comment 9 Daniel Franke 2006-01-04 22:30:29 UTC
*** This bug has been confirmed by popular vote. ***
Comment 10 Daniel Franke 2006-01-04 22:32:02 UTC
Second comment #6, ordering by inclusion would be great ...
Comment 11 Thomas Braun 2007-10-04 22:51:25 UTC
Hello,

in kile 2.0 we have changed the grouping in the files and projects view. There are also new subgroups with files like images, or other non tex files.

Please have a look at this new implementation.

I don't close this bug, because there seems to be still some interest in a discussion.

Thomas
Comment 12 Michel Ludwig 2010-08-06 21:14:08 UTC
All of what is mentioned in this bug report seems to have been implemented in Kile 2.1 beta 4 already. I'm therefore closing this bug now.
Comment 13 gero 2010-08-07 17:47:52 UTC
I'm running Kile 2.0.85 -- that is 2.1 beta 4, right? There, files in the project view are still ordered alphabetically. All users who commented on this bug, A T, Martin and myself, have agreed that the order of inclusion makes much more sense.

So ultimately, this bug has not been fixed yet. Can you please reopen?
Comment 14 Michel Ludwig 2010-08-07 18:13:20 UTC
Ah, I see. The real feature wish here is actually to have an option to show files in inclusion order in the *project view*.

I've changed the title accordingly.