-
Notifications
You must be signed in to change notification settings - Fork 6
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
[gh-265] Add the IEx addon #266
Conversation
a45f8eb
to
43c935b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Few questions otherwise I think it's a good addition to the template 👍
string: :light_black, | ||
boolean: :red, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These are the only changes that are not default, right? I think we should leave the colors to be the default as they are subjective unless there's a benefit for doing so. I do like differentiating between the colors of booleans
and nil
though as they are both magenta in the default colours?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After discussion, it's good to keep the color as default if nothing wrong with it. I removed the override the code colors here: @liamstevens111 0d37bf5
If the developer would like to override the syntax colors, they can override it in ~/.iex.exs
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@byhbt So if we confirmed the colours in your terminal (all the same) are not the default colours and they actually have distinct colours as previously mentioned (although bools and nil are same 😢 ) then yeah I think should be left as default IMO. 👍
alias <%= base_module %>.Repo | ||
<% end %> | ||
IEx.configure( | ||
history_size: 1000, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This history_size
is rather large 😀 , what is the default? I couldn't find it online and it seems whatever I change this value to it doesn't really have any effect.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here is the default of history_size
https://github.com/elixir-lang/elixir/blob/main/lib/iex/mix.exs#L19 . Yeah admitted that it's a bit larger than the default one. I will update it to just ten times larger seem enough. Updated in 960406e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see, you need to have history enabled first right, ie
iex --erl “-kernel shell_history enabled”
https://hexdocs.pm/iex/1.14/IEx.html#module-shell-history
I guess if this was enabled above I could just press up
to scroll back my history instead of typing v(n)
to go back, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, we need to enable it on the system as a whole.
export ERL_AFLAGS="-kernel shell_history enabled"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just small comment about history otherwise good to go
I see, you need to have history enabled first right, ie
iex --erl “-kernel shell_history enabled”
https://hexdocs.pm/iex/1.14/IEx.html#module-shell-historyI guess if this was enabled above I could just press
up
to scroll back my history instead of typingv(n)
to go back, right?
Closes #265
What happened 👀
IEx
addon to generate the default.iex.exs
add the project root directoryelixir_ls
to the generated.gitignore
RFC template
in the Issue section. From now on, to propose a new RFC, we will use GitHub Discussion instead.Insight 📝
The
WebApp.Repo
is only loaded for the web project.Proof Of Work 📹
The tests should pass.