-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Changelog in spacemacs buffer #1070
Conversation
I notice that it says |
They do for me. I forget why I put that in - I think the mouse wasn't working before? Must try it again with |
Good job! You can give colours to the button easily by using existing faces or define a new face. Instead of plain string in
We should give the top buttons the same face, a face for |
More to improve:
|
@CarlQLange The buttons do not work for me. Press
|
@tuhdo No clue why the buttons work for me but not for you - could you investigate? |
@CarlQLange You have to enable |
I'm pretty sure I hadn't, but ok... |
I think instead of inserting the changelog in the spacemacs buffer. better open its own window, to the right of current Spacemacs buffer. |
check it out now - I changed This may fix the issue @tuhdo is having, but mouse clicks no longer work for me on the links. RET does, though (it did before also) |
I dunno. That's for @syl20bnr to decide. I don't think it's a great idea really, I prefer it in the spacemacs buffer, showing only after an update. |
This is why I used |
@CarlQLange But imagine after this release, we have a huge change log instead of a few ones, it would disrupt other features in Spacemacs buffer. You can try a sample change log of Emacs with About this widget issue, let's revert it back to before adding the minor mode and let people try it out if the issue persists. |
This reverts commit 26e00cd.
Reverted.
The idea was that you would read through, then hide it, and then never see it again until the next update or the next time you toggled the changelog. I guess it's six of one and half a dozen of another, I'm not strongly pushed in either direction. Not really my choice anyway, up to @syl20bnr. One way or another I would love to see another release out soon... |
With your original commits (where you had About the change log, it's up to @syl20bnr. But I think we should split current buffer in in other read-only buffer to the right side of current Spacemacs buffer and have a key binding to quit similar to other help buffers. Otherwise, we will have to add a key binding to jump back to the |
Added that
Using k and j would break normal editing movement, and I personally hate that :) I think TAB and S-TAB do the job, and do what people expect. I expect j and k to move up and down lines, not between widgets (even if that's theoretically more useful). Don't forget that vim users would see this buffer first, think "I'll just move the cursor", and then get confused and angry and never use emacs again ;) I'd love to use nice colourful faces for this stuff. I'd like @syl20bnr to chime in though - the buffer didn't have any colour before, and I'm wondering if it was a choice. |
That's cool. The change log in spacemacs will be a org file so it makes more sense to display it in its own buffer. It will be also easier to add some feature like navigation or more fancy one like checking out a specific version etc... |
I cloned Spacemacs again, switched to UPDATE: I tested on my Ubuntu machien and it is the same. The buttons are not clickable. Good news is, I found out that there's a command called |
It works for others, I wonder why it doesn't work for you! :) It even works for my inside a terrible term emulator... |
Did you use Evil or holy-mode? I was using holy-mode. |
Whatever's the default - I guess that's evil? I actually don't even know what holy-mode does :) @syl20bnr Do you think this PR could be used to display the message you want to show? Not the changelog. |
I can confirm that if I switch to
It works for you because the default command for |
This is the description of
That's why you was able to press the button with |
Aha, brilliant! Thanks a lot! I'll fix this later on. |
@CarlQLange @syl20bnr imo, it's better to use the functionality of |
@tuhdo I think a quick help button is kind of redundant. Everything those buttons can do is accessible through a documented key binding or browser URL. The reason I added those buttons was for new user discoverability, not quick access. For people that want quick access to those functions they can just use the existing key bindings. And if they really want quick navigation through the buttons they can look up how to do it in the docs. |
@trishume but first time new users won't know about
So the new users know how to move around, especially for users who use Emacs in terminal. |
@CarlQLange Yes this button can be used to toggle the info message, it will be displayed by default. We can add a saved setting in @tuhdo @trishume This discoverability issue expands to all Vim key-bindings as well, we have no mechanism to show what's available in a given state. OTOH showing all the key bindings in motion state would make the important |
@CarlQLange the persistent value should be a version number, not a boolean. This way we can display the new info message when a new release is installed. |
@CarlQLange I pushed two functions to display some text in a frame in 63f9e72. It can be used to display the text of the toggle. |
Aha, cool, yep, I'll do this stuff today. It all sounds pretty good! |
@CarlQLange I want to include the toggle button in the release, tell me if you have time to make it persistent as described above, if you don't have time no problem I will merge this PR and adapt it. |
Sorry, my Real Job is really busy at the minute - next chance I have is Friday. |
I merged it. I will adapt it with the remarks above. We are close to the 0.101.0 release :-) Thank you @CarlQLange 👍 |
Great, I'm really sorry I didn't get the chance to work on this. |
No problem, you already did a lot 👍 |
Probably not ready to merge yet, but please take a look. Requires #1065 because it uses the widget ui.
Closes #1067.
Includes a preference in
.spacemacs
to always show or hide the changelog on startup.Next steps:
always-show-changelog
is off).