-
-
Notifications
You must be signed in to change notification settings - Fork 337
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
* swiper.el: make line numbers consistent with display-line-numbers-mode #2731
base: master
Are you sure you want to change the base?
Conversation
f24e15c
to
d2f7569
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.
Thanks, see some of my initial comments after a quick look through the code.
d365f81
to
7442102
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.
LGTM apart from some minor nits/questions.
I'm not sure if this change is small enough to be merged without a copyright assignment, though. Do you already have one on file with the FSF? If not, would you be willing to? If you're not familiar with it, there's some more information at (info "(emacs) Copyright Assignment")
.
I don't but I'm willing to. I'll let you know when the paperwork goes through |
Three changes were made to the 'swiper' line numbers to make it more like the builtin 'display-line-numbers-mode' 1. The line numbers are now right justified see: 'swiper--candidates' 2. The line numbers now have custom faces based on the builtin line-number and line-number-current-line faces see: 'swiper-line-number-face' 'swiper-current-line-number-face' 3. The current line number is highlighted. using an ivy format function see 'swiper--format-function'
These changes are what came from me investigating how to change
the appearance of the swiper line numbers. This change should add
some customization support for swiper line numbers using the builtin
display-line-numbers-mode
as "sane default"Three changes were made:
The line numbers are now right justified.
see:
swiper--candidates
The line numbers now have custom faces based on the builtin
line-number and line-number-current-line faces.
see:
swiper-line-number-face
swiper-current-line-number-face
The current line number is highlighted. using an ivy format
function.
see:
swiper--format-function