I want to open files from iex> open()
with Atom or vim.
I tried to put on my ~/.zshrc
:
export ELIXIR_EDITOR="atom +__LINE__ __FILE__"
or
export ELIXIR_EDITOR="/usr/local/bin/atom +__LINE__ __FILE__"
or
export ELIXIR_EDITOR="vim +__LINE__ __FILE__"
or
export ELIXIR_EDITOR="vi +__LINE__ __FILE__"
or
export ELIXIR_EDITOR="open -a Terminal 'vim +__LINE__ __FILE__'"
or
export ELIXIR_EDITOR="open -a Terminal 'nvim +__LINE__ __FILE__'"
and nothing work's. My version of Elixir is 1.7.4 on Mac OS X Mojave.
[UPDATE]
The error when I try to use with vim is this:
iex(1)> open String.at/2
The file /Users/romenigld/workspace/elixir/ebooks/learn_functional_programming_with_elixir/ch06_designing_your_elixir_applications/dungeon_crawl/vim +1744 "/Users/romenigld/.asdf/installs/elixir/1.7.4/lib/elixir/lib/string.ex" does not exist.
Maybe it's a problem with the asdf? I don't know!
I was seeking on internet and I find this solution who the people uses for activate the command atom for open files, and now work's!
export ELIXIR_EDITOR="sh /Applications/Atom.app/Contents/Resources/app/atom.sh"