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

Enable completion setting through IRB_COMPLETOR #771

Merged
merged 1 commit into from
Nov 21, 2023

Conversation

ima1zumi
Copy link
Member

I propose introducing the capability to set the IRB completion kinds via an environment variable, specifically IRB_COMPLETOR=type.
This feature aims to enhance the Rails console experience by allowing Rails users to specify their preferred completion more conveniently.

Currently, when using the Rails console, there's no straightforward way to set the type completion across a Rails application repository.
It's possible to configure this setting by placing a .irbrc file at the project root. However, using a .irbrc file is not ideal as it allows for broad configurations and can potentially affect the production environment.
My suggestion focuses on allowing users to set the completion to type in a minimal.

This enhancement would be particularly beneficial for teams writing RBS in their Rails applications.
This type completor, integrated with RBS, would enhance completion accuracy, improving the Rails console experience.

@ima1zumi ima1zumi changed the title Enable Setting Completer Type through IRB_COMPLETOR Enable completion setting through IRB_COMPLETOR Nov 19, 2023
I propose introducing the capability to set the IRB completion kinds via an environment variable, specifically `IRB_COMPLETOR=type`.
This feature aims to enhance the Rails console experience by allowing Rails users to specify their preferred completion more conveniently.

Currently, when using the Rails console, there's no straightforward way to globally set the type completion across a Rails application repository.
It's possible to configure this setting by placing a `.irbrc` file at the project root. However, using a .irbrc file is not ideal as it allows for broad configurations and can potentially affect the production environment.
My suggestion focuses on allowing users to set the completion to 'type' in a minimal.

This enhancement would be particularly beneficial for teams writing RBS in their Rails applications.
This type completer, integrated with RBS, would enhance completion accuracy, improving the Rails console experience.
@st0012 st0012 added the enhancement New feature or request label Nov 20, 2023
@ima1zumi ima1zumi merged commit 032f6da into ruby:master Nov 21, 2023
24 checks passed
@ima1zumi ima1zumi deleted the add-completor-env branch November 21, 2023 00:04
matzbot pushed a commit to ruby/ruby that referenced this pull request Nov 21, 2023
(ruby/irb#771)

I propose introducing the capability to set the IRB completion kinds via an environment variable, specifically `IRB_COMPLETOR=type`.
This feature aims to enhance the Rails console experience by allowing Rails users to specify their preferred completion more conveniently.

Currently, when using the Rails console, there's no straightforward way to globally set the type completion across a Rails application repository.
It's possible to configure this setting by placing a `.irbrc` file at the project root. However, using a .irbrc file is not ideal as it allows for broad configurations and can potentially affect the production environment.
My suggestion focuses on allowing users to set the completion to 'type' in a minimal.

This enhancement would be particularly beneficial for teams writing RBS in their Rails applications.
This type completer, integrated with RBS, would enhance completion accuracy, improving the Rails console experience.

ruby/irb@032f6da25f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

Successfully merging this pull request may close these issues.

3 participants