Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add note about editing previous command. #11

Merged
merged 1 commit into from
May 27, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions content/pages/editor.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,23 @@ Title: Editor
Slug: editor
status: hidden

One of the powerful slash commands is `\e`. This will launch an editor to edit the current query.
One of the most useful slash commands is `\e`. This will launch an editor to
edit the current query (or previous query, if the current query is blank).

Here are some examples:

Here are some examples:

```

# This will launch the default editor (read from $EDITOR env variable).
> \e
# It will put the previous query in the editor's buffer.
> \e

# This will open the default editor with the current query in the buffer.
> SELECT * FROM \e

# This will open an existing file in the editor and the contents of the file will be populated into the repl once the file is saved.
# This will open an existing file in the editor and the contents of the file
will be populated into the prompt once the file is saved.
> \e <filename>

```