Great. Thanks José!

On Fri, 21 Oct 2016, 07:47 José Valim, <jose.va...@plataformatec.com.br>
wrote:

Yes, we could add colors to Inspect.Opts. Keep in mind we want to make
coloring customizable, so the :colors value in Inspect.Opts should likely
be a key-value thing. Maybe: [number: :red, atom: :blue] and so on?



*José Valim*
www.plataformatec.com.br
Skype: jv.ptec
Founder and Director of R&D

On Thu, Oct 20, 2016 at 5:50 PM, Louis Pop <louispopin...@gmail.com> wrote:

Hey gang!

On Saturday we're having a little Elixir build day at work and I thought
this could be a fun thing to suggest as a project.

I just had a look at IEx and it seems that for printing it delegates to the
Inspect protocol for printing.
Would it be reasonable to extend this protocol (and Inspect.Opts) to
optionally print with colours?

Thanks,
Louis

On Thu, 15 Sep 2016 at 15:29 José Valim <jose.va...@gmail.com> wrote:

Improvements to the REPL are always welcome but low priority for the team.
If you believe you can implement any of those improvements, please send a
pull request, and we will be glad to further discuss and review them. Keep
in mind though some of those improvements would need to be done in Erlang.

Detailed feedback below:


   1. Ability to paste snippets using cpaste; this would solve the problem
   of multiline pipes

Sounds great. Although to implement this we would need to hook into OS
specific APIs?


   1. Ability to pickup files in current working directory; completion of
   filenames etc when writing test code in iex would be very benecifial

How would you know though the string you are starting to type is a file
name? Do you look for clues such as "/" or "./"?


   1. Syntax highlighting; it would be nice to see some syntax highlighting
   like in the newer version of iPython

Sounds great. We already have the code for parsing Elixir and convert it
back to string, so the hardest part is done. We just need to decide how to
do the coloring. I don't think we will be able to color as you type though,
that would likely require additions to the Erlang side of the REPL.

Thank you!

-- 
You received this message because you are subscribed to the Google Groups
"elixir-lang-core" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to elixir-lang-core+unsubscr...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elixir-lang-core/8f5c2ea6-f7c1-42ab-9ba3-5d19669c58e1%40googlegroups.com
<https://groups.google.com/d/msgid/elixir-lang-core/8f5c2ea6-f7c1-42ab-9ba3-5d19669c58e1%40googlegroups.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups
"elixir-lang-core" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to elixir-lang-core+unsubscr...@googlegroups.com.

To view this discussion on the web visit
https://groups.google.com/d/msgid/elixir-lang-core/CAM-pwt7PKTjbsGabNj6NAKmVPL5nGWAtm%3DNjNGStiOTWGyBPiA%40mail.gmail.com
<https://groups.google.com/d/msgid/elixir-lang-core/CAM-pwt7PKTjbsGabNj6NAKmVPL5nGWAtm%3DNjNGStiOTWGyBPiA%40mail.gmail.com?utm_medium=email&utm_source=footer>
.


For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups
"elixir-lang-core" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to elixir-lang-core+unsubscr...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elixir-lang-core/CAGnRm4KSuK7p1LdBXsM-9SLMvPAJFeTMpTo7JX1aT9F1qM3ZjA%40mail.gmail.com
<https://groups.google.com/d/msgid/elixir-lang-core/CAGnRm4KSuK7p1LdBXsM-9SLMvPAJFeTMpTo7JX1aT9F1qM3ZjA%40mail.gmail.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"elixir-lang-core" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to elixir-lang-core+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elixir-lang-core/CAM-pwt5WyJT9x%2B6cGRmUeOAtZyLL%2BB%2Bc9ddDCgAkBka-PxUnww%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to