IBM / zopeneditor-about

IBM Z Open Editor: File issues here!
https://ibm.github.io/zopeneditor-about
Apache License 2.0
50 stars 20 forks source link

[Feature requests] Editor Enhancement for Tabstart in VSCODE #242

Open kraabrsg opened 2 years ago

kraabrsg commented 2 years ago

https://github.com/microsoft/vscode/issues/148877#issuecomment-1122458915

Description of the enhancement requested

FALLAI-Denis commented 2 years ago

Hi @kraabrsg

Trying to understand your request, I see that Z Open Editor does not support tabstop for the PL1 language, nor for JCL or Rexx, whereas it does for COBOL and HLASM.

Could this be a solution to your problem?

image

JCL is a language that uses alignment positions, the management of tabstops would be useful there. For Rexx there is no alignment rule, so normal that there are no tabstops. For PL1 I don't know the language.

kraabrsg commented 2 years ago

Hi @FALLAI-Denis well at the first position you could write in 0 or 1 to mark it for printing (nowadays this is not often used). the idea is just that a normal tabstart should ignore the first position and you tab from 0 3 5 7 etc.

FALLAI-Denis commented 2 years ago

OK, I've got it.

The editor would have to ignore the first column and position itself on column 1 (base 0) at each "return key". In this case, if we declared a tabsize of 2, and if we are in column 1 (base 0), we are tabulating in 3, 5, 7, etc. ?

We have much the same problem in COBOL: the line "return key" should position us directly in column 6 (base 0) and not at the beginning of the line, because columns 0 to 5 are reserved for the numbering of lines, which generally we does not manage.

And that falls under Z Open Editor, not VS Code.

phaumer commented 2 years ago

Thanks. I mark it as an enhancement request for us to examine if we can do anything from the extension.