Elvish: Add a multiline mode

Created on 6 Dec 2017  路  2Comments  路  Source: elves/elvish

Most helpful comment

According to followup on IRC, Gitter's compose mode makes Enter insert a newline, and you need to use Ctrl-Enter instead to send the message.

Most terminals do not support Ctrl-Enter (it just sends an Enter). However, many do support Alt-Enter. Right now, Alt-Enter also inserts a newline. It may make sense to swap Enter and Alt-Enter in "compose mode".

Re the name, "multiline mode" makes more sense for a shell, so I changed the title.

All 2 comments

According to followup on IRC, Gitter's compose mode makes Enter insert a newline, and you need to use Ctrl-Enter instead to send the message.

Most terminals do not support Ctrl-Enter (it just sends an Enter). However, many do support Alt-Enter. Right now, Alt-Enter also inserts a newline. It may make sense to swap Enter and Alt-Enter in "compose mode".

Re the name, "multiline mode" makes more sense for a shell, so I changed the title.

Implementing this request might be warranted but since it is trivial to drop into an external editor for complicated edits is it worth the cost to implement this feature? See, for example, https://github.com/elves/elvish/issues/636#issuecomment-619315679 and https://github.com/elves/elvish/issues/535#issuecomment-615963855. It seems to me that a change that makes it easy to edit a command in an external editor is more useful and would resolve this request; albeit in an unexpected manner.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

xiaq picture xiaq  路  7Comments

xiaq picture xiaq  路  4Comments

zzamboni picture zzamboni  路  6Comments

zethra picture zethra  路  3Comments

zzamboni picture zzamboni  路  3Comments