Page 1 of 1

Bookmark locations within the text document

Posted: Tue Dec 21, 2004 5:09 pm
by shuffle
Hi,

I work on some files that have way too many lines of code, so my wish list is:

1. Ability to bookmark a position in a file (you might do this with a 2nd file with lineNo and labels). This would be a god send for coders working on legacy apps.

2. Ability to fold up functions and classes like Visual Studio (Ctrl M Ctrl L). This is likely needs to be specific to a document class.

Naturally if TextPad wasn't already my pick, I wouldn't want new features - so thanks for an excellent product!

Matt

Posted: Tue Dec 21, 2004 9:07 pm
by s_reynisson
On 2, feel free to vote and/or have your say over here http://textpad.com/forum/viewtopic.php?t=3764
I seem to remember a poll or a thread on enhanced bookmarks, have a look at Jeffy's list here http://textpad.com/forum/viewtopic.php?t=3811&start=75 - scroll down for the latest version, perhaps I'm just missing somehting. HTH

WORKAROUND: Lack of code folding and fast bookmarking

Posted: Sat Jan 15, 2005 8:06 pm
by drefty
The feature known as "Code Folding" is definitely a favorite out
there that many would like to see in TextPad.

Although this feature is not available currently, there is a workaround.
If you put a unique string at the beginning of each "section" of your code,
you can instantly 'jump' to each section by highlighting the word and pressing:

Code: Select all

ctrl+F
To do this workaround you may have to adjust your coding style.
This may or may not be acceptable to you, but it is a fairly decent workaround.

For example, click on the word 'begin_' in the code below and press
ctrl+F to jump to all instances of that word.

Code: Select all

/// begin_: init variables
    var foo = "foo";
    var bar = "bar";

/// begin_: do some stuff
    print foo; 
    print bar; 

/// begin_: functions
     function FeeBar(){
        "do some stuff blah blah";
     }