> A problem with the Note wrapper is that it probably breaks things if it
is invoked inside or on a multiline defnition ( extra terminating ')')

Yes, the Note wrapper would have to check what state the current block is
in, and do nothing if in a multiline explicit definition.

> The good thing about separate comment on/off keys is commenting a set of
lines that already has a comment line.

The rule Sublime Text follows, which is think is standard, is that if all
selected lines are already commented, then uncomment them, otherwise
comment all lines. This will double the comments on a line that is already
commented. Pressing Ctrl+/ twice would restore the previous state, so that
a doubly-commented line would becomee singly-commented.

On 17 August 2015 at 07:54, 'Pascal Jasmin' via Beta <[email protected]>
wrote:

> A problem with the Note wrapper is that it probably breaks things if it is
> invoked inside or on a multiline defnition ( extra terminating ')')
>
> The good thing about separate comment on/off keys is commenting a set of
> lines that already has a comment line.
>
> With that said, its probably OK if you really want it to be.
>
>
> ----- Original Message -----
> From: chris burke <[email protected]>
> To: Beta forum <[email protected]>
> Cc:
> Sent: Monday, August 17, 2015 10:38 AM
> Subject: [Jbeta] comment keys
>
> The Jqt editor currently uses Ctrl+Shift+N to comment lines and
> Ctrl+Shift+B to uncomment them. These keys have been used in J for many
> years, but are non-standard.
>
> The usual practice in text editors is to use Ctrl+/ as a toggle and
> Ctrl+Shift+/ as a block toggle, i.e, in J804:
>
>   Ctrl+/                toggle NB. on/off on selected lines
>   Ctrl+Shift+/       toggle Note on/off, i.e. wrap selected lines in Note''
> .... )
>
> Is this OK?
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to