flat assembler
Message board for the users of flat assembler.

Index > IDE Development > fasmw suggestion: go back a "tab" when pressing ba

Author
Thread Post new topic Reply to topic
wisepenguin



Joined: 30 Mar 2005
Posts: 129
wisepenguin 01 Jul 2006, 19:40
fasm 1.66
fasmw 0.93.7

in fasmw it accepts the tab character and moves the cursor to the
right so many spaces, useful for indents.

but when pressing backspace it only goes back 1 space and not a tab.

this is useful but i would prefer it to only go back 1 space if a space
is at the previous position, and go back 1 tab if a tab is at the previous
position.

so, backspace will go back either 1 tab or 1 space depending on the
previous character (the one about to be deleted with backspace)

and maybe shift+backspace will always go back 1 space regardless.

is this possible ?
Post 01 Jul 2006, 19:40
View user's profile Send private message Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 8356
Location: Kraków, Poland
Tomasz Grysztar 01 Jul 2006, 20:08
Not possible directly, since fasmw's editor internally uses no tab characters (reproducing this behavior of DN's editor was one of the reasons why I wrote my own edit control instead of using the standard one, note also the "Smart tabs" option, which wouldn't be possible with standard tab characters, and "Optimal fill" which too specific to this design). But in "original" DN's editor there was an option "Backspace indents", which would perhaps still be useful for you if I implemented it in fasmw?
Post 01 Jul 2006, 20:08
View user's profile Send private message Visit poster's website Reply with quote
Madis731



Joined: 25 Sep 2003
Posts: 2139
Location: Estonia
Madis731 02 Jul 2006, 09:26
Maybe some other accelerator then like Shift+Tab. Backspace => means exactly back-space, but shift-tab could move 4 or 8 spaces back or maybe make Shift+Tab also intelligent:
Code:
mov eax,4
|   add ebx,8
|   |   sub ecx,12
\   \   \   ;comment: every Shift+Tab takes you back to the previous backslash
    
Post 02 Jul 2006, 09:26
View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger Reply with quote
wisepenguin



Joined: 30 Mar 2005
Posts: 129
wisepenguin 02 Jul 2006, 10:18
Tomasz, thanks for the reply and inner workings of fasmw.
the "backspace indents" option sounds like it could be useful, i guess
this takes the cursor back the same amount of spaces as a tab ?

i like it that fasmw works in characters, but sometimes its a bit tedious
to get alignment right in many lines of code.

i would appreciate this feature if you had spare time Smile
Post 02 Jul 2006, 10:18
View user's profile Send private message Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 8356
Location: Kraków, Poland
Tomasz Grysztar 02 Jul 2006, 11:57
For now you can use Ctrl+Backspace to quickly delete the whole indent (but this will remove all indents at once).

BTW: the fact that fasmw is still 0.9x version is my excuse why there's no documentation at all for the editor features. However I already revealed some of the details on this board. Here you can find some quick description of options. There are also all hotkeys listed somewhere...
Post 02 Jul 2006, 11:57
View user's profile Send private message Visit poster's website Reply with quote
Madis731



Joined: 25 Sep 2003
Posts: 2139
Location: Estonia
Madis731 03 Jul 2006, 07:27
Yes, the hotkeys are just a post before in your link:
http://fasm.sourceforge.net/archive/oldsite/fasmkeys.txt
Post 03 Jul 2006, 07:27
View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.