-
Notifications
You must be signed in to change notification settings - Fork 281
Set link release (no modifier) default to search box #3652
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
base: main
Are you sure you want to change the base?
Conversation
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.
I'd recommend swapping the two actions, rather than of making both shift and .. shiftless? open search.
N.B. This will also impact anyone who hasn't set the value explicitly. It might be a good idea to add some check so as not to impact existing users who just had the default and liked it.
I think we should be decisive about these types of design decisions and be okay switching users who have not set a value in the past to the new search box on link release. The new search is a far better experience then the nested LG context menus and also it's something we actually plan on supporting and extending. Perhaps I should seek some other opinions though, because that is jusy my 2 cents. I'll report back after gathering some opinions. |
First part: Only one of the two settings has been changed. It means that dragging a link with shift held does exactly the same thing as not holding shift (effectively disabling that feature). Is that intended? Second part: I strongly agree the default should be search, despite its current issues (e.g. search lists every "ANY" node first, so it seems a lot of folks use the context menu "quick" list). I was just flagging that in case it had not been considered, moreso than taking a stance -- the PR said "new user should", and didn't mention any impact to existing users. I figured we should only change this for new users, rather than silently update existing users. "What's new" system would make this much easier. |
Oh, sorry: I somehow failed to register that aspect of your initial comment. You're right, I should swap them. |
I think the subtextual issue here is we don't have a good way to set a setting for new users only. The reason seems to be that settings are only serialized to the user's settings.json if they have set it explicitly. Possible fixes:
I think option 1 is pretty standard. WDYT? |
Is it standard? I haven't actually noticed that happening in many places. I think a "not set" value for settings is valuable; e.g. should we ever want to change the default for existing users for whatever-special-reason, we can. "Resetting" a setting should restore it to this state, rather than any explicit-current-default. But there's a really simple solution imo; check if the file exists. |
So we track which settings are |
There's no truly clean (edit: and elegant) settings solution for an evolving app that I've ever found. |
Hm, that could work. We definitely will need this type of system eventually (e.g., for changing navigation controls). Would it be easier to do something like this? {
id: 'Comfy.LinkRelease.Action',
category: ['LiteGraph', 'LinkRelease', 'Action'],
name: 'Action on link release (No modifier)',
type: 'combo',
options: Object.values(LinkReleaseTriggerAction),
defaultValue: LinkReleaseTriggerAction.CONTEXT_MENU,
+ defaultsByInstallVersion: {
+ '1.21.3': LinkReleaseTriggerAction.SEARCH_BOX,
+ '1.40.3': LinkReleaseTriggerAction.FUTURISTIC_LLM_GIGA_NEW_FEATURE
+ }
}, Then we just start saving the version in a |
I think that looks cleaner - and will probably(?) make reasoning about it when you need to compare a an actual settings file to the setting impl. easier. |
Currently, when releasing link on canvas, the default action is to open the context menu. However, the Litegraph context menus are too difficult to navigate, and the suggestions are misleading about what nodes are actually compatible with the dropped link. The search box has fuzzy searching, filters, a more modern UI, and allows for quicker usage and feedback.
A new user should not be subjected to the context menus as the default link release experience.