-
-
Notifications
You must be signed in to change notification settings - Fork 381
Add setting to select all query text on window reopen #3065
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
base: dev
Are you sure you want to change the base?
Conversation
This comment has been minimized.
This comment has been minimized.
@1208nn Sorry for the late response. Is there a reason that this is a draft pr? |
I'm sorry that I have no touch to those devices that can run VS, so this PR isn't finished as you can see and untested. |
* **SettingsPaneGeneralViewModel.cs** - Add `SelectAllQueryOnReopen` property - Bind the new property to the settings in the constructor * **MainWindow.xaml.cs** - Update `OnLoaded` method to select all query text if the new setting is enabled - Add `SelectAllQueryText` method to handle selecting all query text * **MainWindow.xaml** - Bind `QueryTextBox` to the new setting to select all query text when the window is reopened * **SettingWindow.xaml.cs** - Initialize the new checkbox based on the settings
57d781e
to
77d2cd8
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
@1208nn Hi, I think FL already provides this feature and please check If you want to select all text when window is reopened, you can use Closed. |
Oh, sorry. I think I didn't make it clear. for example (see #2945) bm github Select github |
Hmm, you mean just select part of query text |
Why do we need that? |
@check-spelling-bot Report🔴 Please reviewSee the 📂 files view, the 📜action log, or 📝 job summary for details.
See ❌ Event descriptions for more information. Forbidden patterns 🙅 (1)In order to address this, you could change the content to not match the forbidden patterns (comments before forbidden patterns may help explain why they're forbidden), add patterns for acceptable instances, or adjust the forbidden patterns themselves. These forbidden patterns matched content: s.b. workaround(s)
If the flagged items are 🤯 false positivesIf items relate to a ...
|
Isn't this something that can be done with a custom query hotkey? It seems pointless to create it. |
SettingsPaneGeneralViewModel.cs
SelectAllQueryOnReopen
propertyMainWindow.xaml.cs
OnLoaded
method to select all query text if the new setting is enabledSelectAllQueryText
method to handle selecting all query textMainWindow.xaml
QueryTextBox
to the new setting to select all query text when the window is reopenedSettingWindow.xaml.cs