-
-
Notifications
You must be signed in to change notification settings - Fork 426
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
Prompt buffer mark checkboxes #3176
Conversation
Nice work,
Almost - lets try a few things first. See you tomorrow. |
Result of meeting last week? What must we do? |
It was decided that Artyom will make the extra column disappear 🫥 per the spec in #3134 |
we talked through what other options might look like and they don't look great. |
What's the status on this one? @aartaka @lansingthomas |
What's the status on this one?
The last time we discussed it, @lansingthomas was unsure about checkboxes. But I can't recall the reason.
|
@aartaka I am all good on checkboxes. Sorry for any confusion. |
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.
This PR is manifestly not ready. See the bug below - the user is unable to unmark the top suggestion.
simplescreenrecorder-2023-10-23_10.23.53.mp4
Requesting peer reviews for unfinished or not self-reviewed work is to be avoided at all costs.
@aartaka OK for me to take over this one? |
@aartaka OK for me to take over this one?
Yes.
|
aartaka OK for me to take over this one?
Yes.
|
I finally got Nyxt compiling against this branch. I rm'd NASDF from all subdirectories on my machine, and it started working. I can start working on this again. |
I've not been able to solve the bug yet. I have been working on this, though. |
It however doesn't happen only with the top checkbox. I have been able to get it to happen with other checkboxes. |
@aadcg I believe I have fixed the bug. I have done some testing, and have simplified a lot of the logic. Please give it a try now. |
@jmercouris when requesting a review, please ensure that the branch is rebased over master. Do you see the pertinence of this request? |
Sure, but I am not saying it is completely ready, I am just saying that I believe I fixed the bug :-D I can rebase over master next time as well! |
Well.. I see now that I /was/ requesting a review. But! I thought there was still work to be done, not sure if it is to be called "Mark" or whatever. I think there were some stylistic changes to make! |
b81b497
to
72a134b
Compare
@jmercouris, I see the misunderstanding! I'd suggest completing the PR, including all of the final details, and requesting a review at the very end when you feel it's ready to be merged. "Intermediary" reviews may be needed at times (though they should be avoided for the sake of efficiency), but perhaps not in this case. |
I've tweaked the visual appearance closer to the specification: What do you say @lansingthomas ? |
c0b07fd
to
412dff0
Compare
@aadcg R E A D Y! |
Looks great. Don't let styling get in your way at this point. We just need to help people intuit this whole modal experience. |
@jmercouris we'll discuss it on the call. Thanks. |
412dff0
to
e720b05
Compare
e720b05
to
75bfe70
Compare
Thanks! |
I am finally a merging magician! |
Description
This adds a checkbox to every mark-able suggestion in prompt buffer. Looks like this right now:
Clicking on a checkbox scrolls the prompt one suggestion down (like it does with
C-space
/M-space
marking), which is convenient. I've also restricted the area where clicks mark/return suggestions to the attribute values they list.Note that I didn't apply the styling yet, because I was mainly working with the structure of the prompt in general. One particular thing that diverges from @lansingthomas' spec is the "Mark" column. I had to add it because otherwise prompt becomes much less structured and breaks table markup in general :P @lansingthomas, is the structure okay? Good to proceed with styling?
Fixes #3134
Discussion
Mention there any suspicious parts of the new code, or the ideas that you'd like to discuss in regards to this change.
Checklist:
Everything in this checklist is required for each PR. Please do not approve a PR that does not have all of these items.
cd /path/to/nyxt/checkout git submodule add https://gitlab.common-lisp.net/nyxt/py-configparser _build/py-configparser
:documentation
s written in the aforementioned style. (It's OK to skip the docstring for really trivial parts.)changelog.lisp
with my changes if it's anything user-facing (new features, important bug fix, compatibility breakage).migration.lisp
entry for all compatibility-breaking changes.(asdf:test-system :nyxt)
and(asdf:test-system :nyxt/gi-gtk)
) and they pass.