Make \edit synonymous with the \e command#1636
Conversation
\edit synonymous with the \e command
94f0bae to
7b50a9c
Compare
|
Findings
Notes
Questions / Assumptions
|
7b50a9c to
10227e2
Compare
and preferred in the documentation. Technically, "\e" becomes an alias for "\edit". At first glance there appears to be an ambiguity, due to the fact that "\e" is a leading substring of "\edit", but there is not one, because we require a space between the command and filename in the _leading_ form, and because there is no ambiguity in the _trailing_ form. Adding the space separator requirement here is reasonable because * that is how it works for other commands such as "\o"/"\once" (which also happens to share the same potential ambiguity) * the leading "\e" form is currently broken without a space: a command such as "\escript.sql" attempts to edit a literal query "script.sql" rather than opening a file, contrary to the documentation
10227e2 to
de0cf01
Compare
Description
Make
\editsynonymous with the\ecommand, and preferred in the documentation. Technically,\ebecomes an alias for\edit.At first glance there appears to be an ambiguity, due to the fact that
\eis a leading substring of\edit, but there is not one, because we require a space between the command and filename in the leading form, and because there is no ambiguity in the trailing form.Adding the space separator requirement here is reasonable because
\o/\once(which also happens to share the same potential ambiguity)\eform is currently broken without a space: a command such as\escript.sqlattempts to edit a literal queryscript.sqlrather than opening a file, contrary to the documentationChecklist
changelog.mdfile.AUTHORSfile (or it's already there).