Topic: Status line and Tabs (1 of 5), Read 22 times
Conf: VEDIT Suggestions
From: Walt Pattinson
Date: Wednesday, July 20, 2005 07:38 PM

Is it possible to leave the status line displayed while some/all menu windows are open? In the case of CONFIG/TAB usually I want to set a tab at the column I've just placed the cursor (I rarely remember to look at the location first). Or maybe an indication of the current position in the tab menu?

On a similar note, is it possible to set a repeating tab-stop after an initial tab setting? For example, setting tabs every 6 places after setting an initial stop at 32.

 


Topic: Re: Status line and Tabs (2 of 5), Read 19 times
Conf: VEDIT Suggestions
From: Ted Green
Date: Tuesday, July 26, 2005 11:56 AM

At 07:38 PM 7/20/2005, you wrote:
>Is it possible to leave the status line displayed while some/all menu windows are open? In the case of CONFIG/TAB usually I want to set a tab at the column I've just placed the cursor (I rarely remember to look at the location first). Or maybe an indication of the current position in the tab menu?

No, when navigating menus we use the status line for help information.
This cannot be turned off.

>On a similar note, is it possible to set a repeating tab-stop after an initial tab setting? For example, setting tabs every 6 places after setting an initial stop at 32.

No, this is also not possible.

Ted.

 


Topic: Status line and Tabs (3 of 5), Read 20 times
Conf: VEDIT Suggestions
From: Ian Binnie
Date: Tuesday, July 26, 2005 09:31 PM

On 7/20/2005 7:38:15 PM, Walt Pattinson wrote:
>In the case of
>CONFIG/TAB usually I want to
>set a tab at the column I've
>just placed the cursor (I
>rarely remember to look at the
>location first). Or maybe an
>indication of the current
>position in the tab menu?

It is easy to set tabs at current column, the following macro will do this.


// Set tab at current column
// Ian Binnie 23/07/2005
// ian_binnie at optusnet dot com dot au ( replace "at" "dot" by the normal characters.)
//

Save_Pos() // remember file position
#30=Buf_Num // Current Edit Buffer
#105=Cur_Col // current cursor column

#31=BUF_FREE // temporary buffer
Buf_Switch(#31)

Out_Reg(103) // redirect output to Reg.103
Num_Type(#105, NOCR)
Num_Type(#105, NOCR)
Out_Reg(CLEAR)
Buf_Quit(OK)
buf_switch(#30)

Reg_Set(103,"Config_Tab(", INSERT) // command begin -> R.103
Reg_Set(103,")", APPEND) // command end -> R.103
Call(103) // execute the built command
Restore_Pos() // back to old position

>On a similar note, is it
>possible to set a repeating
>tab-stop after an initial tab
>setting? For example, setting
>tabs every 6 places after
>setting an initial stop at 32.

It would be equally easy to set tabs at fixed intervals after this.

You may be interested in Christisn's "tabumat.vdm" & my "TabRight.vdm" "TabLeft.vdm" (also on Christian's site)

 


Topic: Status line and Tabs (4 of 5), Read 22 times
Conf: VEDIT Suggestions
From: Christian Ziemski
Date: Wednesday, July 27, 2005 02:03 AM

On 7/26/2005 9:31:57 PM, Ian Binnie wrote:
>
>It is easy to set tabs at current column, the following macro will do this.
>
>// Set tab at current column
>// Ian Binnie 23/07/2005


Or a bit shorter:

Reg_Set(103,"Config_Tab(")
ItoA(Cur_Col, 103, APPEND+NOCR)
ItoA(Cur_Col, 103, APPEND+NOCR)
Reg_Set(103,")", APPEND)
Call(103)


Christian

 


Topic: Status line and Tabs (5 of 5), Read 24 times
Conf: VEDIT Suggestions
From: Christian Ziemski
Date: Wednesday, July 27, 2005 02:42 AM


And here a version which adds a tab stop at current cursor column to the already existing tab stops.

Only works well with already set explicit tab stops. A set interval will be deactivated.
But it should be obvious that there is much potential for creating new macros. ;-)

//
// ADDTAB.VDM Christian Ziemski
// 27.07.2005
// Adds a tab stop at current cursor column
//

#103=Buf_Num
#104=Cur_Col
Buf_Switch(Buf_Free(EXTRA))
Out_Ins()
Config_Tab()
Out_Ins(CLEAR)

Begin_Of_File
while (! At_EoL) {
#105=Num_Eval(SUPPRESS)
if (#105 >= #104) {
break
}
Char(Chars_Matched)
}
Ins_Text(" ")
Num_Ins(#104, LEFT+NOCR)

Reg_Set(103,"Config_Tab(")
Reg_Copy_Block(103, 0, EoL_Pos, APPEND)
Reg_Set(103,")", APPEND)
Buf_Quit(OK)
Buf_Switch(#103)
Call(103)



Christian