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

Rename dialog_pointer_* to dialog_highlight_* #456

Merged
merged 1 commit into from Jul 22, 2022

Conversation

st0012
Copy link
Member

@st0012 st0012 commented Jul 21, 2022

"Pointer" is not what we usually use to describe a selected item.

"Highlight" is a more common word for the scenario so we should use it instead.

@st0012
Copy link
Member Author

st0012 commented Jul 21, 2022

@peterzhu2118 @nobu Wdyt?

@peterzhu2118
Copy link
Member

I don't really have a strong opinion on whether it should be called "pointer" or "highlight". Both terms make sense to me, "pointer" means the element that is pointed to, and "highlight" means the element that is highlighted, so I think either term makes sense.

@st0012
Copy link
Member Author

st0012 commented Jul 21, 2022

Is it common to say a keyboard selected item "pointed"? I'd expect "pointed" to be cursor-related (which doesn't seem to work on reline's dialog). But maybe it's because of my limited English 😬

I'm fine with "pointer" in the context of reline. But I was trying to make a related PR in irb, which will expose these APIs to all Ruby users. And I think highlight will be clearer to most users compared to pointer. I can of course just name things in irb differently but I want to avoid that.

@peterzhu2118
Copy link
Member

I agree that "pointer" makes more sense in the context of a GUI with a mouse. 👍 I'm in favor of this PR.

lib/reline/config.rb Outdated Show resolved Hide resolved
"Pointer" is not what we usually use to describe a selected item.

"Highlight" is a more common word for the scenario so we should use it instead.
@peterzhu2118 peterzhu2118 merged commit 9bc3353 into ruby:master Jul 22, 2022
@mame
Copy link
Member

mame commented Jul 22, 2022

I don't know much about reline but this is not just an internal name, but a name used in the configuration file, right? If so it's incompatible?

@st0012
Copy link
Member Author

st0012 commented Jul 22, 2022

These apis/configs were newly added and haven’t been released yet

@st0012 st0012 deleted the rename-dialog-apis branch July 22, 2022 14:48
@mame
Copy link
Member

mame commented Jul 22, 2022

Oh I see. Thank you for the explanation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants