On 3/13/06, Neil Hodgson <[EMAIL PROTECTED]> wrote: > Felix Kater: > > > 1 #if ... > > 2 #if ... > > 3 my code... > > 4 #endif > > 5 #endif > > > > If the cursor is located in line 3, doing the first IDM_PREVMATCHPPC > > places the cursor to line 2 (which is OK) but doing a second > > IDM_PREVMATCHPC does not move > > the cursor into line 1. > > Its not supposed to. Line 1 encloses line 2, it doesn't match it. > The only match for 2 is forwards to 4. If there was an #else, then > IDM_PREVMATCHPPC would go from the #endif to the #else and then the > #if.
I am sorry, I don't get your answer (maybe due to my english). Let my descibe my question with other words, I added one line to demonstrate it: 1 #if ... 2 some other code 3 #if ... 4 my code... 5 #endif 6 #endif (1) As mentioned I use folding a lot--so I've sometimes deep hierarchies of nested folds. However, if you are inside an inner fold (like line 4) and want to get out to the outer folds (line 1) you can't just keep pressing a key to envoke IDM_PREVMATCHPPC because the cursor is only moved to the top of the actual fold (line 3). If you then want to go to the next outer fold (line 1) you first have to move the cursor one line up and then you can repeat IDM_PREVMATCHPPC and so on. I just don't unterstand why IDM_PREVMATCHPPC should not work if the cursor is already placed at a fold point (like #if). (2) Let me add something about folding: To make navigation perfect it would be great to have these functions bound to keys: Alt+Up = IDM_PREVMATCHPPC with addition of note (1) Alt+Down = IDM_NEXTMATCHPPC with addition of note (1) Alt+Left = explicitly collaps actual fold (and not toggle) Alt+Right = explicitly unfold actual fold (and not toggle) Thanks Felix _______________________________________________ Scite-interest mailing list [email protected] http://mailman.lyra.org/mailman/listinfo/scite-interest
