Re: [Qt-creator] Navigating inside Editor question or suggestion

2009-12-24 Thread Andre Poenitz
On Wed, Dec 23, 2009 at 05:36:41PM +0100, Christian Dähn wrote:
 I used (e)FTE (http://efte.sourceforge.net) - a tribute to old
 Borland IDEs - where you just have to press Alt+, to move to 
 previous or Atl+. for next occurrence of word under cursor.
 This IDE is minimalistic and has a console-only (NCurses) version, too.

Sounds like vi. That has * to jump to the next occurence of the word
under the cursor. Happens to work in Qt Creator's fakevim mode btw.
 
 And HaiQ (http://haiq-info.org) a quite flexible Qt IDE -
 which has some nice editing features Qt Creator users can dream of -
 for example: a word completion working for any words and working
 even inside strings and macros - a big time saver.

Sounds like Ctrl-N in vim. A really big time saver if you are interested
in string based completion. Less usefull for semantic completion,
though...

Andre'

PS: Any idea why sourceforge lists a certain 'cd-3dh' under the name
of 'Christian Daehn' as one of the main contributors to a project called
'HaiQ'?

___
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator


Re: [Qt-creator] Navigating inside Editor question or suggestion

2009-12-23 Thread Matthias Ettrich
On Tuesday 22 December 2009 07:41:54 ext Christian Dähn wrote:
 Anybody suggesting me to use Ctrl+F should consider that the search
 doesn't work with just one keystroke - you have to select the word,
 then press Ctrl+F, then Enter to start the search and then you have
 to use (Shift+)F3 to go forward/backward.

Nope, you must not preselect the word, creator will automatically select the 
word under the cursor. 

Currently there are three shortcuts for jumping to the next word under the 
cursor provided there is no text selection:

1. Ctrl+F Enter Esc 
2. Ctrl+F F3 Esc
3. Ctrl+F Esc F3

By Emacs and VI standards those are pretty short shortcuts :-) They all also 
have the nice side effect of highlighting all occurences of the word in 
question. Hitting Esc one more time removes the highlighting.

Adding additional methods that you can bind keys to would be quite trivial. I 
would suggest doing it on the basetexteditor level.

What other IDEs or Editors do have specialised methods for that, and what are 
the default keybindings?

 Matthias

___
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator


Re: [Qt-creator] Navigating inside Editor question or suggestion

2009-12-23 Thread Christian Dähn
Hi,

 Nope, you must not preselect the word, creator will automatically select the 
 word under the cursor. 
 
 Currently there are three shortcuts for jumping to the next word under the 
 cursor provided there is no text selection:
 
 1. Ctrl+F Enter Esc 
 2. Ctrl+F F3 Esc
 3. Ctrl+F Esc F3
 
 What other IDEs or Editors do have specialised methods for that, and what are 
 the default keybindings?

I used (e)FTE (http://efte.sourceforge.net) - a tribute to old
Borland IDEs - where you just have to press Alt+, to move to 
previous or Atl+. for next occurrence of word under cursor.
This IDE is minimalistic and has a console-only (NCurses) version, too.

And HaiQ (http://haiq-info.org) a quite flexible Qt IDE -
which has some nice editing features Qt Creator users can dream of -
for example: a word completion working for any words and working
even inside strings and macros - a big time saver.

ciao,
Chris


___
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator


Re: [Qt-creator] Navigating inside Editor question or suggestion

2009-12-23 Thread matthias.ettrich
Chris,

the IDEs you mention seem to satisfy your needs much better than Qt Creator, 
may I ask why you are interested in Qt Creator at all?

I mean, if you prefer string based completion over semantical completion, Qt 
Creator clearly isn't the tool for you. Creator is all about understanding C++, 
and that is the direction it will continue to move into.

Matthias


From: qt-creator-boun...@trolltech.com [qt-creator-boun...@trolltech.com] On 
Behalf Of ext Christian Dähn [da...@asinteg.de]
Sent: Wednesday, December 23, 2009 5:36 PM
To: qt-creator@trolltech.com
Subject: Re: [Qt-creator] Navigating inside Editor question or suggestion

Hi,

 Nope, you must not preselect the word, creator will automatically select the 
 word under the cursor.

 Currently there are three shortcuts for jumping to the next word under the 
 cursor provided there is no text selection:

 1. Ctrl+F Enter Esc
 2. Ctrl+F F3 Esc
 3. Ctrl+F Esc F3

 What other IDEs or Editors do have specialised methods for that, and what are 
 the default keybindings?

I used (e)FTE (http://efte.sourceforge.net) - a tribute to old
Borland IDEs - where you just have to press Alt+, to move to
previous or Atl+. for next occurrence of word under cursor.
This IDE is minimalistic and has a console-only (NCurses) version, too.

And HaiQ (http://haiq-info.org) a quite flexible Qt IDE -
which has some nice editing features Qt Creator users can dream of -
for example: a word completion working for any words and working
even inside strings and macros - a big time saver.

ciao,
Chris


___
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator

___
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator


Re: [Qt-creator] Navigating inside Editor question or suggestion

2009-12-23 Thread Coda Highland
 Visual Studio uses Ctrl-F3 to find the next occurrence of the word under the
 cursor, and F3 to find the next after that.

That is to say, Ctrl+F3 is search for next occurrence of current
word; F3 is find again no matter how you started the search.

In vim, shift+8 is find next occurrence of current word and shift+3
is find previous occurrence of current word. In both cases you can
use n to continue or use the same keystroke. (Apparently the
mnemonic is that it's * and # like on a phone. Other than that it
seems a bit senseless.)

/s/ Adam
___
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator


[Qt-creator] Navigating inside Editor question or suggestion

2009-12-21 Thread Christian Dähn
Hi,

inside Qt Creator I miss the feature of jumping to the next/previous
occurrence of the word under the cursor.

Is this already possible with Qt Creator?

I'm programming since 17 years now and am used to have a simple
shortcut to jump directly to the next occurrence of the current word -
e.g. by just pressing Alt+',' or Alt+'.'.

Anybody suggesting me to use Ctrl+F should consider that the search
doesn't work with just one keystroke - you have to select the word,
then press Ctrl+F, then Enter to start the search and then you have
to use (Shift+)F3 to go forward/backward.

Further I'm really disappointed about how F2 and F4 works -
F2 seems to have serious problems to find the occurrences of
methods (or I just don't know how to use it) and F4 cannot switch
between method declaration (.h file) and implementation (.cpp)
correctly - it often jumps just to the file, not to the correct position.

ciao,
Chris

PS: I'm seriously interested to write own plugins for Qt Creator -
especially a plugin to add more editor functions and shortcuts.
Where could I start or: Is there a HowTo or a documentation how
to write plugins for creator?


___
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator


Re: [Qt-creator] Navigating inside Editor question or suggestion

2009-12-21 Thread Christian Kandeler
On Tuesday 22 December 2009 07:41:54 ext Christian Dähn wrote:

 F4 cannot switch
 between method declaration (.h file) and implementation (.cpp)
 correctly - it often jumps just to the file, not to the correct position.

That's what it's supposed to do. What you want is Shift+F2.

 PS: I'm seriously interested to write own plugins for Qt Creator -
 especially a plugin to add more editor functions and shortcuts.
 Where could I start or: Is there a HowTo or a documentation how
 to write plugins for creator?

This one's pretty good: 
http://www.vcreatelogic.com/p/2009/08/document-on-writing-plugins-for-qt-creator/


Christian

___
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator