New document switching mode

Jens Zurheide jens.zurheide at gmx.de
Tue Jan 28 22:40:09 UTC 2003


Hi!
>
>> Am Monday 27 January 2003 23:18 schrieb Jens Zurheide:
>> I was missing this feature, too and often tried to implemented it and
>> gave up
>> again ( due to lack of QT/KDE experience ). However, my approach was (
>> being
>> a VS 6 user ), to sort the list of open documents in the 'Windows' menu
>> by
>>
>> last-viewed, and attach a number-shortcut to all of them. That means,
>> the current window is always the first. Then comes the window/view you
>> had open
>> before and so on. 
That is currently implemented.
>> So switching between to views was something like ALT-W
>> + 2,
>> ALT-W + 3, etc. 
This not.
>> This system works well together with that of VS 7: Press
>> CTRL
>> and hold it, press TAB several times to get to the 2nd, 3rd, 4th etc
>> last viewed document ( and CTRL+SHIFT+TAB to go backwards ).
Works well if you have defined the Prev. View/Next View shortcuts to be 
(Shift-)Ctrl-Tab.
>
>Thinking from a KDevelop user's point of view:
>1.) Yes, I also like very much your feature of cycling through the views
> in "last-viewed" order by holding the Ctrl key and pressing another key
> several times. This is similar to Ctrl+F6 in MS Visual C++ 6.0 which is
> one of the most often used key combinations when coding there. Jörg, is
> Ctrl+F6 still a free accel in KDevelop-3?
>2.) But additionally,  I'd also like to have a constant view accelerator
> for a view. For instance, if it's Alt+3 (or whatever key), it shouldn't
> change to Alt+1. So in a session, you can always be sure Alt+8 is
> foo.cpp.
>
>Does your patch match both thoughts? Sorry, currently, I don't have enough
>time to try your patch...
No, not both thoughts. 

To 1.) Currently I have hijacked the Previous/Next View accelerators (the 
ones, Harry mentioned) for the switching. I have first disabled the 
Ctrl-Tab global shortcut of KDE and then reassigned the Previous/Next View 
accelerators to (Shift-)Ctrl-Tab. And who uses a shortcut for switching 
between virtual desktops?

To 2.) I don't know how this would work in practice. From my daily job 
experience I can say that I end up with some 20 to 30 opened files in VS 
sometimes. Assigning accels to all of them would not be too easy. On the 
other hand it might be feasible to assign accels to the buttons in the 
QextMdiTaskBar (ViewBar). But then a new dialog will become necessary. (And 
if I like the feature too much I will end up adding many new dialogs in VS 
by mistake (by pressing Alt-3(?)).)

So I will have a look at the IDEAl mode. I hope it will be possible there as 
well...

Ciao,
Jens






More information about the KDevelop-devel mailing list