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

Change neo-hide-cursor bool to a selection for 3+ options #349

Open
DivineDominion opened this issue Mar 17, 2022 · 4 comments
Open

Change neo-hide-cursor bool to a selection for 3+ options #349

DivineDominion opened this issue Mar 17, 2022 · 4 comments

Comments

@DivineDominion
Copy link

Hiding the cursor #233 was implemented in #276

A side-effect of hiding the cursor is that hl-line-mode is then enabled automatically.

I wonder if changing the customization option from a boolean to a selection would make sense, with e.g.: neo-selection-indicator set to one of 'cursor, 'hl-line, 'none (or nil).

I could make the change, but want to discuss this first.

What do y'all think?

@DivineDominion
Copy link
Author

Sketched in code:

(defcustom neo-selection-indicator 'cursor
  :type '(choice (const :tag "Cursor" 'cursor)
                 (const :tag "None" nil)
                 (const :tag "Highlight Line" 'hl-line)))

Instead of constant values set to symbols, might also add a function that's executable, but not sure if I personally prefer that. Interpreting the symbols would be fine with me.

@Abdisalan
Copy link
Collaborator

Curious, how do you keep track of what line you're on if there's no cursor or highlight?

@DivineDominion
Copy link
Author

@Abdisalan I don't; this is rather preserving the current customization options (as I understand them). Switching between cursor and line highlight without a 3rd option sounds sensible to me, though.

@Abdisalan
Copy link
Collaborator

@DivineDominion I agree, we shouldn't be forced to use hl-line if we don't want to. If you put a PR for this change I'll approve it

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

No branches or pull requests

2 participants