By default, Bugzilla does not search the list of RESOLVED bugs.
You can force it to do so by putting the upper-case word ALL in front of your search query, e.g.: ALL tdelibs
We recommend searching for bugs this way, as you may discover that your bug has already been resolved and fixed in a later release.
Bug 821 - Enabled users to manually re-sort Documents widget in Kate
Summary: Enabled users to manually re-sort Documents widget in Kate
Status: RESOLVED FIXED
Alias: None
Product: TDE
Classification: Unclassified
Component: tdebase (show other bugs)
Version: R14.0.0 [Trinity]
Hardware: All Other
: P1 major
Assignee: Calvin Morrison
URL:
Depends on:
Blocks:
 
Reported: 2012-01-27 15:11 CST by Calvin Morrison
Modified: 2012-05-23 20:33 CDT (History)
3 users (show)

See Also:
Compiler Version:
TDE Version String:
Application Version:
Application Name: kate


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Calvin Morrison 2012-01-27 15:11:14 CST
it would be great to be able to manually resort documents in kate in the 
documents tab bar. 

this should be reorganizable with 3 different ways:

1) context menu ( move up, move down)
2) short cut, defaulting at CTRL + SHIFT + , and CTRL + SHIFT + . 

and if possible
3) resorting by dragging with mouse

Calvin
Comment 1 Darrell 2012-01-27 19:06:29 CST
The reversed patches in bug report 244 partially provides what you seek. With that restored code there now is a check box option to sort the Documents file list.

Here is a screen grab of the restored configuration option:

http://humanreadable.nfshost.com/images/kate-after.png

Once upon a time there was a tab bar extension for kate (possibly still exists), but I don't remember whether that extension provided drag-and-drop sorting options.
Comment 2 Timothy Pearson 2012-05-15 00:06:14 CDT
Functionality added in GIT hash 46a657f.

If there is an issue with the CTRL + SHIFT + [,.] keyboard shortcuts new ones will need to be used.
Comment 3 Darrell 2012-05-15 00:27:50 CDT
How is this intended to work? Pressing CTRL + SHIFT + [,.] does what? What should I see when testing?
Comment 4 Timothy Pearson 2012-05-15 01:18:06 CDT
(In reply to comment #3)
> How is this intended to work? Pressing CTRL + SHIFT + [,.] does what? What
> should I see when testing?

Come to think of it, keyboard shortcuts for this are actually kinda stupid.  Instead, I have implemented drag+drop support for moving a file in the Kate file list when the Sort mode is set to Manual Placement.

Tim
Comment 5 Timothy Pearson 2012-05-15 01:19:47 CDT
(In reply to comment #4)
> Come to think of it, keyboard shortcuts for this are actually kinda stupid. 
> Instead, I have implemented drag+drop support for moving a file in the Kate
> file list when the Sort mode is set to Manual Placement.
> 
> Tim

These changes are in GIT hashes b0fa10d and 9a948c1.
Comment 6 Darrell 2012-05-15 11:45:37 CDT
I still don't understand how this works. :-) The file list can already be sorted: Settings menu, Application/General, Sort files alphabetically in the file list. What do these patches provide?
Comment 7 Timothy Pearson 2012-05-15 12:37:14 CDT
(In reply to comment #6)
> I still don't understand how this works. :-) The file list can already be
> sorted: Settings menu, Application/General, Sort files alphabetically in the
> file list. What do these patches provide?

Sometimes I have found that I want one or two files to be in a different location; i.e. not sorted by opening date, alphabet, or anything else.  One example might be if I have files open from two different directories and want to keep them clustered together--if I forgot to open one file in sequence there was no way for me to move it to be with the other files in the list from that directory.

These patches allow a user to move a document's location in the list via drag-n-drop.
Comment 8 Calvin Morrison 2012-05-16 12:24:54 CDT
> Sometimes I have found that I want one or two files to be in a different
> location; i.e. not sorted by opening date, alphabet, or anything else.  One
> example might be if I have files open from two different directories and want
> to keep them clustered together--if I forgot to open one file in sequence there
> was no way for me to move it to be with the other files in the list from that
> directory.
> 
> These patches allow a user to move a document's location in the list via
> drag-n-drop.


Please re-add the shortcuts! They are actually useful to me, but also for consistency. For Example, Konsole allows you to resort tabs with a key press with CTRL+SHIFT {left,right}. I think that the 'mdi' interface is basically a vertically stacked tab window (not internally but it has the same features of a regular tabbed interface) so I think it should follow suit.

Calvin
Comment 9 Calvin Morrison 2012-05-16 12:36:04 CDT
> Sometimes I have found that I want one or two files to be in a different
> location; i.e. not sorted by opening date, alphabet, or anything else.  One
> example might be if I have files open from two different directories and want
> to keep them clustered together--if I forgot to open one file in sequence there
> was no way for me to move it to be with the other files in the list from that
> directory.
> 
> These patches allow a user to move a document's location in the list via
> drag-n-drop.


Please re-add the shortcuts! They are actually useful to me, but also for consistency. For Example, Konsole allows you to resort tabs with a key press with CTRL+SHIFT {left,right}. I think that the 'mdi' interface is basically a vertically stacked tab window (not internally but it has the same features of a regular tabbed interface) so I think it should follow suit.

Calvin
Comment 10 Timothy Pearson 2012-05-16 13:38:31 CDT
(In reply to comment #9)
> > Sometimes I have found that I want one or two files to be in a different
> > location; i.e. not sorted by opening date, alphabet, or anything else.  One
> > example might be if I have files open from two different directories and want
> > to keep them clustered together--if I forgot to open one file in sequence there
> > was no way for me to move it to be with the other files in the list from that
> > directory.
> > 
> > These patches allow a user to move a document's location in the list via
> > drag-n-drop.
> 
> 
> Please re-add the shortcuts! They are actually useful to me, but also for
> consistency. For Example, Konsole allows you to resort tabs with a key press
> with CTRL+SHIFT {left,right}. I think that the 'mdi' interface is basically a
> vertically stacked tab window (not internally but it has the same features of a
> regular tabbed interface) so I think it should follow suit.
> 
> Calvin

OK, can you locally revert 9a948c1a and see if the shortcuts actually work?  I don't think they do at this point for several reasons:
1.) The keyboard shortcut handler would need to operate on the currently selected file, not the most recently clicked file.
2.) I was having difficulty with the CTRL+SHIFT+[,.] triggers.  I don't know if this was a local machine problem only or something more widespread.

If you want to hack on the code to add this feature please feel free. :-)

Tim
Comment 11 Timothy Pearson 2012-05-23 20:33:46 CDT
The ability for Kate to save/restore a manually reordered session was added in GIT hash 08c816f.