Skip to content

Make searching variables optional (defaults to off)#3543

Merged
vadi2 merged 6 commits intoMudlet:developmentfrom
dicene:variableSearchToggle2
Mar 31, 2020
Merged

Make searching variables optional (defaults to off)#3543
vadi2 merged 6 commits intoMudlet:developmentfrom
dicene:variableSearchToggle2

Conversation

@dicene
Copy link
Copy Markdown
Contributor

@dicene dicene commented Mar 28, 2020

Brief overview of PR changes/additions

Adds an option for variables to be included in searches, which is disabled by default now. This option is in the search menu on the left side of the search bar, positioned with the Case Sensitivity option.

image

Motivation for adding to Mudlet

Over the course of many years using Mudlet, I'm not sure that I have searched variables intentionally more than a single time. However, due to the large amounts of data I keep saved in various tables in Lua, searching through the variables causes Mudlet to lag for several seconds any time I want to search.

Other info (issues closed, discussion etc)

Supersedes #3415, which added a toggle to the profile settings. The search options menu is a more appropriate place for it. Even if the menu is non imminently discoverable, the default of NOT including variables seems to be agreed upon as the correct default. See previous discussion on that PR.

…abled by default now. This option is in the search menu on the left side of the search bar, positioned with the Case Sensitivity option.
@dicene dicene requested a review from a team as a code owner March 28, 2020 19:24
@dicene dicene requested a review from a team March 28, 2020 19:24
@add-deployment-links
Copy link
Copy Markdown

add-deployment-links bot commented Mar 28, 2020

Hey there! Thanks for helping Mudlet improve. 🌟

Test versions

You can directly test the changes here:

No need to install anything - just unzip and run.
Let us know if it works well, and if it doesn't, please give details.

@dicene
Copy link
Copy Markdown
Contributor Author

dicene commented Mar 28, 2020

Please note, this PR does not add icons for the search options state of Case-Sensitive&Include-Variables or just Include-Variables. These will eventually need to be have been added, but IMO, there is no point in holding up the functionality getting added on an icon that has yet to be designed.

Edited 2020/03/29 by @SlySven: as now done.

@SlySven
Copy link
Copy Markdown
Member

SlySven commented Mar 28, 2020

I'll see if I can run something up tonight - and I will get to play/review this code as well - so we can still get this one out the door in the next couple of days.

…ions

Signed-off-by: Stephen Lyons <slysven@virginmedia.com>
@vadi2
Copy link
Copy Markdown
Member

vadi2 commented Mar 29, 2020

Could you merge latest development in? That'll give us mac/linux testing links back.

@SlySven SlySven added the Waiting for other PR Merge This PR is awaiting another PR to merge firstly. label Mar 29, 2020
@SlySven
Copy link
Copy Markdown
Member

SlySven commented Mar 29, 2020

@dicene Please merge in dicene#10 to your repository. Much as I hated doing it I decided to stick with the searching in the variable area being an opt-in rather than an opt-out.

dicene added 3 commits March 29, 2020 11:17
Revise: add "with-variables" icons & persistent storage of search options

Not entirely on-board with the decision to put the settings in the profile, instead of in the QSetting that hold all the other dlgTriggerEditor state information(position, size, splitter placements), but it's not really a big deal either way.

Thanks for the icons and code!
@SlySven SlySven added 1 - Ready for review and removed Waiting for other PR Merge This PR is awaiting another PR to merge firstly. labels Mar 29, 2020
Copy link
Copy Markdown
Member

@SlySven SlySven left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since I contributed a chunk of code to this composite PR I ought to rule myself out of being the one to give approval. I can say, however, that it (now) does what it says on the tin, and the Search Options UI has been properly extended to support it.

👍

Copy link
Copy Markdown
Member

@demonnic demonnic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image

@vadi2 vadi2 changed the title Add option to include variables in search(defaults off) Make searching variables optional (defaults to off) Mar 31, 2020
@vadi2 vadi2 merged commit 7065997 into Mudlet:development Mar 31, 2020
@vadi2
Copy link
Copy Markdown
Member

vadi2 commented Mar 31, 2020

Thanks a lot for this. It's pretty awesome 🙌 🙌

@dicene dicene deleted the variableSearchToggle2 branch April 4, 2020 16:38
Chris7 pushed a commit to Chris7/Mudlet that referenced this pull request Jan 2, 2022
* Adds an option for variables to be included in searches, which is disabled by default now. This option is in the search menu on the left side of the search bar, positioned with the Case Sensitivity option.

* Revise: add "with-variables" icons & persistent storage of search options

Signed-off-by: Stephen Lyons <slysven@virginmedia.com>

* Update copyright stamp Mudlet#1

* Update copyright date Mudlet#2

* Trim tooltip to UX standard

Co-authored-by: Stephen Lyons <slysven@virginmedia.com>
Co-authored-by: Vadim Peretokin <vperetokin@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants