File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -240,19 +240,24 @@ defmodule IEx.Helpers do
240
240
241
241
subl path/to/file:line
242
242
243
+ It is important that you choose an editor command that does
244
+ not block nor that attempts to run an editor directly in the
245
+ terminal. Command-line based editors likely extra configuration
246
+ so they open up the given file and line in a separate window.
247
+
243
248
Custom editors are supported by using the __FILE__ and __LINE__
244
- notations. For example, vi/vim users can set `ELIXIR_EDITOR` to :
249
+ notations, for example :
245
250
246
- ELIXIR_EDITOR="vi +__LINE__ __FILE__"
251
+ ELIXIR_EDITOR="my_editor +__LINE__ __FILE__"
247
252
248
253
and Elixir will properly interpolate values.
249
254
250
255
Since this function prints the result returned by the editor,
251
256
`ELIXIR_EDITOR` can be set "echo" if you prefer to display the
252
257
location rather than opening it.
253
258
254
- Keep in mind the location may not exist when opening
255
- precompiled source code, such as Elixir itself .
259
+ Keep in mind the location may not exist when opening precompiled
260
+ source code.
256
261
257
262
## Examples
258
263
You can’t perform that action at this time.
0 commit comments