feat: Form.TagPicker support#1158
Conversation
|
also, formatting in QML files is absolute hell. I did not take time to write |
b5350c7 to
7104486
Compare
469c1e6 to
bd0c258
Compare
aurelleb
left a comment
There was a problem hiding this comment.
Also, I didn't test this but feel free to edit the existing 'form' extension playground under ./extra/extension-boilerplate to test two more scenarios:
- controlled tag picker (value is set on the react side, and state is changed when the change event is emitted)
- correct handling of reactivity. If the react side sends an entire new tag list all of a sudden it should gracefully update.
| } | ||
|
|
||
| Keys.onPressed: (event) => { | ||
| if (event.key === Qt.Key_Return || event.key === Qt.Key_Enter) { |
There was a problem hiding this comment.
you should check modifier here (or lack of it using === Qt.NoModifier) so that it doesn't block shift+return or other stuff, as it's used to submit the form.
There was a problem hiding this comment.
it doesn't block shift+enter - the behavior is alright, I can submit the form while still picking a tag. are you sure I still need to check for modifier?
| cmake_minimum_required(VERSION 3.16) | ||
| set(PROJECT_NAME vicinae) | ||
| set(CMAKE_EXPORT_COMPILE_COMMANDS ON) | ||
| set(QT_QML_GENERATE_QMLLS_INI ON) |
There was a problem hiding this comment.
qmlls support was merged on main some time ago, take that instead of doing this here
There was a problem hiding this comment.
hmm, can you tell where specifically? at the moment, fuzzy search indicates that this is the only instance where qmlls is mentioned at all. I can remove this option once the feature is done, but I really really need qmlls here - much computationally cheaper than rebuilding the entirety of Vicinae every time
I can deal with conflicts anytime. even if they accumulate, they are easy to resolve with jj |
bd0c258 to
413c2eb
Compare
|
just rebased everything. took like 10 minutes - nothing too serious. looking into comments closer now... |
b3351d9 to
ca98f17
Compare
| onAboutToShow: { | ||
| _confirmed = false; | ||
| Qt.callLater(cancelBtn.forceActiveFocus); | ||
| } |
There was a problem hiding this comment.
for the record - this is by make qmlformat
ca98f17 to
28ae3ed
Compare
I'd do a UX cleanup pass here in whole. will take on that tomorrow and until the end of the week. this time for real :) |
28ae3ed to
a09c9c0
Compare


[ THIS IS INTENDED SOLELY FOR UI/UX REVIEW PURPOSES; PLEASE DON'T MERGE UNTIL DEBUG LOGGING IS REMOVED ]
closes #746, improves compatibility with Linear and Obsidian Raycast plugins.
a short overview:
flake.nix,.gitignore,CMakeLists.txt- that's to use Qt Creator and/orqmllson NixOSFormTagPicker.qmlandTagPickerTagdefine UItag-list.cppandform-model.cpp