Re: Suggested changes to Delphi editor



On Wed, 31 Oct 2007 19:27:05 +0100, Steve Thackery <thack@xxxxxxxxxxx> wrote:

2/ Cursor not constrained by line ends

In most editors, to add text to the end of an existing line, you just click anywhere beyond the last character and start typing. In Delphi, do that and it immediately pads the lines with spaces up to the point where you placed the cursor. This is completely non-standard behaviour. It requires you to position the pointer exactly - just to the right of the final character on the line, which takes extra time.

I appreciate that this behaviour may be desired by some users, so:

I propose an option in the editor very similar to the one called 'Cursor beyond EOF'. Just call it 'Cursor beyond EOL' and enable it by default. That way fusspots like me can disable it. Note that it should also constrain the cursor when using the up and down arrow keys to navigate, just like every other application (and TRichEdit) does.


Same goes for tabs. When pressing left, right arrows the cursor jumps the tabs as expected. When pressing up,down arrows or by clicking with mouse it is possible to write text 'inside' a tab padding it with spaces.
I find this behaviour quite annoying since it pretty much spoiles the advantage of using tab, since my code becomes a mixture of tabs and spaces.
.



Relevant Pages

  • Re: Ouch! a *MAJOR* bug in TPU.
    ... > How 'bout expecting the cursor to be found where no data currently ... In order to be able to insert a character on a line, ... the terminal wouldn't send the nulls back ... Some editors were smart and would fill with blanks up to a certain ...
    (comp.os.vms)
  • Re: Exporting trouble
    ... the output file character set: Windows (but I have tried all other ... tabs and returns are of course reserved as field and records delimiters. ... Of course, if you are exporting the data for use as HTML code, then you ...
    (comp.databases.filemaker)
  • Re: Another strange character showing up in a .PPT file
    ... How many Tabs are there? ... differently, depending on fonts installed, etc? ... the associated font changes from Arial Narrow to Arial Unicode MS, ... the character does not appear. ...
    (microsoft.public.powerpoint)
  • Re: (repost): Very tough question, about HTML manipulation
    ... You need to be able to apply a regular expression to chunks of text, so I can see why my individual character method would not work. ... Again create a Cursor and Reference Range. ...
    (microsoft.public.scripting.jscript)
  • Re: Virus Symptoms ?
    ... key) and the delete key deleted all the charcaters back to the cursor. ... Also, arrow keys move, yes. ... backspace to delete the incorrect character ... and type the correction to insert. ...
    (microsoft.public.windowsxp.basics)