Author |
Topic: Wishlist of minor editor suggestions (Read 303 times) |
|
donquibeats
New Member

member is offline


Posts: 3
|
 |
Wishlist of minor editor suggestions
« Thread started on: May 26th, 2009, 2:04pm » |
|
Hello
I can think of about half a dozen "it would be nice if..." suggestions that I could make about the BB4W Program Editor. It's a great editor and it does a brilliant job, so these aren't criticisms, just suggestions for extra non-essential functionality.
As Richard has said in the past that BB4W is pretty much completed, would there be any value in it if I posted a short wishlist here, or would I just come across as ungrateful?
Stuart
|
|
Logged
|
|
|
|
Richard Russell
Administrator
    
member is offline


Gender: 
Posts: 276
|
 |
Re: Wishlist of minor editor suggestions
« Reply #1 on: May 26th, 2009, 5:50pm » |
|
Quote:| would there be any value in it if I posted a short wishlist here, or would I just come across as ungrateful? |
|
I wouldn't consider it "ungrateful" but the likelihood of any suggestions being incorporated is small, especially as the editor is exceptionally vulnerable to nasty bugs being introduced if 'fiddled with'.
Richard.
|
|
Logged
|
|
|
|
donquibeats
New Member

member is offline


Posts: 3
|
 |
Re: Wishlist of minor editor suggestions
« Reply #2 on: May 26th, 2009, 6:40pm » |
|
on May 26th, 2009, 5:50pm, Richard Russell wrote:| the likelihood of any suggestions being incorporated is small |
|
I appreciate that. Just for your interest, then, rather than any real intention that these should be added features, here are a few:
- Find only works 'down' the document (searching from your current position to the end). It would be helpful if it could also work 'up' the document. Maybe there could be checkboxes for 'up' and 'down' in the Find dialogue box (a bit like Textpad www.textpad.com)
- Right-clicking lists all the procedures in program order. Maybe it's just a sign of my disorganisation but it would be useful for larger programs if there were the option to list the procedures in alphabetical name order instead.
- Automatic line renumbering (this one's probably a bit frivolous)
Stuart.
|
|
Logged
|
|
|
|
Richard Russell
Administrator
    
member is offline


Gender: 
Posts: 276
|
 |
Re: Wishlist of minor editor suggestions
« Reply #3 on: May 26th, 2009, 10:38pm » |
|
Quote:| Find only works 'down' the document (searching from your current position to the end). It would be helpful if it could also work 'up' the document. |
|
Personally I can't say I've ever felt the need for this. In those editors I use which have that capability, I never utilise it myself.
Quote:| Right-clicking lists all the procedures in program order. |
|
Yes, partly because of the way the menu is created and partly because the idea is that you can see things like ON SYS lines in the context of their position in the program. You can even add your own 'separator' lines to the menu, which wouldn't make sense if alphabetically sorted.
Crucially, both the above features could be implemented as Add-in Utilities. I don't have to modify BB4W to provide them, you just have to persuade somebody skilled in the art of writing such utilities to create them for you (or you can learn how to do it yourself)!
Quote:| Automatic line renumbering (this one's probably a bit frivolous) |
|
How would this differ from the Renumber facility already provided?
Richard.
|
|
Logged
|
|
|
|
Stuart
Guest
|
 |
Re: Wishlist of minor editor suggestions
« Reply #4 on: May 27th, 2009, 2:07pm » |
|
on May 26th, 2009, 10:38pm, Richard Russell wrote:Crucially, both the above features could be implemented as Add-in Utilities. I don't have to modify BB4W to provide them, you just have to persuade somebody skilled in the art of writing such utilities to create them for you (or you can learn how to do it yourself)![/qupte]
To be honest, this is the first I've heard about add-in utilities. Is there any documentation about how to create them?
[quote]How would this differ from the Renumber facility already provided? |
|
It would renumber lines instantly whenever code was typed or cut or pasted. At the moment if you cut or copy and paste code with line numbers to a different part of the code, the line numbers remain attached, which arguably serves no purpose.
As I said to begin with, they are frivolous little remarks and I wouldn't stand by them in any sort of proper argument.
|
|
Logged
|
|
|
|
Richard Russell
Administrator
    
member is offline


Gender: 
Posts: 276
|
 |
Re: Wishlist of minor editor suggestions
« Reply #5 on: May 27th, 2009, 3:08pm » |
|
Quote:| To be honest, this is the first I've heard about add-in utilities. Is there any documentation about how to create them? |
|
There's not very much documentation, as such, but they have been widely discussed recently both here and on the Yahoo group. Check out these threads:
http://bb4w.conforums.com/index.cgi?board=ide&action=display&num=1236183192 http://bb4w.conforums.com/index.cgi?board=ide&action=display&num=1241010025 http://bb4w.conforums.com/index.cgi?board=ide&action=display&num=1241940860 http://bb4w.conforums.com/index.cgi?board=ide&action=display&num=1236220487
Also see this Wiki article:
http://bb4w.wikispaces.com/Tools+and+Utilities
Quote:| At the moment if you cut or copy and paste code with line numbers to a different part of the code, the line numbers remain attached, which arguably serves no purpose. |
|
Simple solution - don't use line numbers. Line numbers are provided for legacy reasons, so that ancient BBC Micro programs can be run. You should never use line numbers in programs these days, and I certainly won't be adding any functionality which makes their use more convenient!
On the other hand, a modification to BB4W which automatically gave a mild electric shock to anybody using line numbers in their programs would be very worthwhile 
Richard.
|
|
|
|
donquibeats
New Member

member is offline


Posts: 3
|
 |
Re: Wishlist of minor editor suggestions
« Reply #6 on: Jun 1st, 2009, 4:28pm » |
|
Thanks for the links. A couple of them went quite far over my head, but the idea of doing an add-in utility will be another thing on my "to do" list.
I use line numbers. I'm not ashamed.
The largest two pieces of software I've written are used on each of 20 computers on our Intranet. If the software crashes on any machine, it creates a little log file of the crash into a shared folder, and the error line ERL is a very helpful number to have. I don't know what the line-number-free alternative to ERL would be?
I don't use GOTO or RESTORE 1000 or anything like that, I promise. Just ERL.
|
|
Logged
|
|
|
|
Richard Russell
Administrator
    
member is offline


Gender: 
Posts: 276
|
 |
Re: Wishlist of minor editor suggestions
« Reply #7 on: Jun 1st, 2009, 5:42pm » |
|
Quote:| If the software crashes on any machine, it creates a little log file of the crash into a shared folder, and the error line ERL is a very helpful number to have. |
|
Except that the compiler (assuming you've not disabled the 'concatenate lines' option) will have deleted many of those line numbers anyway! So in fact your log file probably isn't giving you the detailed information you thought it was.
Quote:| I don't know what the line-number-free alternative to ERL would be? |
|
The line-number-free alternative to ERL is !408, which is the actual memory address of the statement (or part of a statement) in which the error was detected. The function ERL simply scans the program to find which line contains that address. You could log that value (in fact the value !408-PAGE might be better) and write a little utility that takes the log file and locates where the error occurred within the program.
Richard.
|
|
Logged
|
|
|
|
|