Dockable compiler output

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
vague

Dockable compiler output

Post by vague »

TextPad is nice, very nice. But as a programmers tool it does have a few annoying shortcommings compared to other offerings. Which is only bad because the rest of the product is so good that I really don't want to use anything else.

1) The compiler/tool output ends up in a separate "normal" window. This works, but IMHO it would be far more convinient to have it (optionally) as a dockable window that could be attached to the bottom of the screen. See a lot of other editors and/or Bloodshed DevC++. It's nice to see the errors while you work with the code, and since I'm monitorially challenged, I need to run my coduments maximized (it also gets messy with many open documents if I don't).


2) The workspaces are neat, but do not replace real project functionality. It automatically adds non-related files that are loaded and skips files that are closed. I'd like to have non-open files in the project and similar things.


3) For such a project window, how about a feature tha let's us view packages/classes/methods/functions in some sort of hiearcalical manner in a separate dockable window. One idea that would make it generic enough would be to allow for specifying a "tree" with a regular expressions to match each level. In a single file or in the entire project. For Python a quick one would look like.


[Imports scope=file]
^import (.*)$

[Classes scope=project]
^class (*.)\((\.*\))?:

[Methods scope=Classes]
^\tdef (.*):

And would produce:

[+] Imports
.|-- wxWindow
.|-- Threading
[+] Classes
.|--[+] IRC
.....|--[+] Methods
.........|-- __init__(self)
.........|-- connect(self, server_address)

Or something similar;-D


4) More power to the regexp replace. It's easy enough to produce a macro that comments a block by inserting single line comments in front of every line, and another one that uncomments it. But it would be nice if the replace could access the syntax variable so it could be generalized to all languages =)


5) Document class sensitive tools/macros/keyboard shortcuts.



6) A vertical "line" one the screen, showing a set number of chars in on the screen. Make "reformat" optionally format to this. Would be helpful for aligning comments to a certain width when code needen't be.


7) This is a biggie, sort of. There is something called a "folding" text editor. It let's you "fold" or "hide" blocks of code, for example everything but a function name and then unfold it. Makes it easier to read and maintain code as the irrelevant pieces can be hidden from view while you work on other parts.


8) How about a "text completor", that let's you hit "somekey" and it completes the current word you are typing to one that is in the syntax highlight list. Optionally also keywords that are picked up by the afformentioned "classes/methods/whatever" hiearchy list. If many words match, have a listbox drop down where you can chose the appropriate one. Many IDE's do this.



I know this list is long and that some things need thinking about and others (all?)simply won't happen, at least not any time soon. But they're all features I'd like to see to make this an even better programmers editor ;-)
vague

RE: Dockable compiler output

Post by vague »

As a small addendum I'd also like to point out that I'm fully aware that this might not be the direction you want to take TP, at all. I'm inclined to believe this is the case bu I just threw these ideas areound regardless =) But alas, I've got yet another (small) thing:

10) Emacs has a mode where the cursor visibly but not physically "jumps" to the matching bracket when you type a bracket. This means you can go on typing at your own speed but the matching bracket is highlighted as you type. I like.
Alan Bellows

RE: Dockable compiler output

Post by Alan Bellows »

Very good idea with the dockable comiler output, the same should go for other Textpad generated texts, such as Search Results. Perhaps you should submit the idea via the TextPad feedback form (see Feedback link at the top of the page), since anything submitted elsewhere is unlikely to be noticed.

Alan Bellows
Software Developer, Epixtech inc
Post Reply