 Gallmarch Posts: 111
3/7/2017
|
I've created a small extension that allows you to search for items and qualities in the 'Myself' tab. This extension was whitelisted on 9 March 2017.
I sometimes find it difficult to track down items in my inventory. This is a particular problem in the 'Curiosity' section, which is a bit of a grab-bag, but it's also tricky to find a particular item or quality to put on my mantelpiece, since they're not categorised and don't appear to be listed in any particular order. I've written a Chrome extension to make finding things a little easier.
The extension is on the Chrome Web Store here: https://chrome.google.com/webstore/detail/fallen-london-item-search/jmldnifgockhcidgdinhbfciiphkamkl The source code is on Github here: https://github.com/sdob/fl-search
When you install it, you'll find two new search fields on the 'Myself' tab: one just under the outfit-selection menu, and one at the top of the 'Inventory' section. Typing something in one of these will hide any items in its section whose names don't match. (Clearing the field will of course reveal everything again.) Searching is case-insensitive but recognises punctuation.
You'll also find the same functionality in the 'Scrapbook Status' and 'Mantelpiece Item' windows when you're searching for something there, which might come in handy.
You can also toggle these search fields on and off by clicking the extension's icon, like so:

That's it! That's all it does.
Here are a couple of screenshots of the extension in action (cropped just to show the main FL interface). Here I'm searching for the notes from my scientific expeditions:

Here, I'm searching through my scrapbook qualities for my acquaintances:
 edited by Gallmarch on 3/9/2017
-- My profile: https://www.fallenlondon.com/profile/Gallmarch
|
|
|
+4
link
|
 Gallmarch Posts: 111
4/12/2017
|
Optimatum wrote:
I found myself today wanting to search for all my items of a specific rarity. I don't know how feasible such functionality would be, but is it possible to have the search also check item/quality descriptions? I assume that would be more resource-intensive, so a way to toggle it on and off would make sense as well. Located in the dropdown menu from the expansion icon perhaps, or as a checkbox toggle beside each individual search bar. (Besides the scrapbook and mantlepiece ones.)
Great idea! That's definitely doable and shouldn't substantially affect performance. I've published an update (v. 1.4.0) that allows you to choose between title-only and full-text searching. For the moment, I've implemented it as a single option in the extension's dropdown that affects all search fields. It's switched off by default (so as not to disturb anyone who isn't interested in the functionality):

I'll get around to making this an option you can select for each of the different search fields at some point down the line, once I'm confident that the new version is working OK. For the moment, let me know if you have any problems (or other feedback, of course).
As an aside, being able to search through the full description actually makes the Outfits search field slightly more useful — for example, here I am searching for stat-reduction gear so that I can fail a Persuasive check (note the minus sign in 'persuasive-'):
-- My profile: https://www.fallenlondon.com/profile/Gallmarch
|
|
|
+2
link
|
 Gallmarch Posts: 111
6/4/2017
|
Mozilla have finally approved this, so it's available for Firefox users from here: https://addons.mozilla.org/addon/fallen-london-item-search1/
-- My profile: https://www.fallenlondon.com/profile/Gallmarch
|
|
|
+1
link
|
 surreyjack Posts: 105
3/7/2017
|
I need this extension badly. Pls FB edited by surreyjack on 3/7/2017
-- My paramount presence, poet laurate, correspondent, main : http://fallenlondon.com/profile/surreyjack
|
|
|
+1
link
|
 Wiwo Posts: 365
3/7/2017
|
This looks terrific. Meaningful improvement to the UX/UI.
-- Wiwo. Almost certainly not a squid in a cunningly tailored suit. Surely.
Care for some cider? Here's how to ask me for some. Strange pranks strongly preferred.
Care to pet a Heptagoat? Too bad. It doesn't do anything (probably).
I'm a Correspondent and would be delighted to lecture at your orphanage.
|
|
|
+1
link
|
 Ysrthgrathe Posts: 87
3/7/2017
|
Fabulous! Thank you.
-- https://www.fallenlondon.com/Profile/Ysrthgrathe
|
|
|
+1
link
|
 Gallmarch Posts: 111
3/9/2017
|
I am happy to report that this has been whitelisted; my thanks to FBG for taking the time to review it, and I hope that it's useful. Feedback is appreciated, and thanks to those of you who have offered it so far (some specific responses follow). If you would prefer not to clutter up this thread, I am gallmarchindustries at gmail.
Firefox users: I have submitted the extension to Mozilla, but their vetting process is a bit longer than Chrome's. For now, if you would like to live on the bleeding edge, then you can install the extension manually by downloading its source code and following the instructions here: https://blog.mozilla.org/addons/2015/12/23/loading-temporary-add-ons/
Optimatum wrote:
Would it be possible to add an option to turn off individual search bars? I specifically want to turn off the one above the outfits.
I've pushed an update — version 1.1 — that should make this possible. It's available from the Chrome Web Store now. You may have to update manually, restart your browser, sacrifice a blemmigan over your computer, etc., in order to update. (I should probably mention at this point that my extension-development experience is comparatively limited.) If you click on the extension's icon, you should see a menu like the following, which will allow you to toggle the search bars off and on:

Facilitating this has added an extra layer of complexity to the extension, so please do report any bugs you discover (again: gallmarchindustries at gmail). Firefox users, making this work for you will take a little bit of extra work while I iron out some small incompatibilities, but I will do so.
I'm very grateful to An Individual and Alexander Cray for making the source code of their extensions available.
Tofan Bogdan wrote:
Gallmarch more useful is also a search of your quality so you don't open all quality tabs to look for what you wish to find.
I agree that this would be very handy! Because of how the Fallen London interface works, achieving this would require doing some work in the extension that might run afoul of FBG's terms and conditions, so I haven't implemented it. I have asked FBG for clarification, and I'll update the extension to search qualities if I can, but don't be surprised if the answer is 'no'. As things stand, you can already search through all of your qualities by opening the 'Scrapbook Status' menu.
-- My profile: https://www.fallenlondon.com/profile/Gallmarch
|
|
|
+1
link
|
 Gallmarch Posts: 111
3/13/2017
|
Apologies for that — I was under the impression that the extension needed to declare that permission in order for the checkboxes to talk to the search fields. (I was wrong; it doesn't.) I've just published version 1.2.1, which doesn't ask for the tabs permission; you should be able to update now.
Thanks for bearing with me!
-- My profile: https://www.fallenlondon.com/profile/Gallmarch
|
|
|
+1
link
|
 Gallmarch Posts: 111
3/14/2017
|
You can now search through your qualities on the 'Myself' tab, as of v. 1.3. You can toggle the search field on/off in the popup menu along with the others. Here, I'm checking out my Renown qualities:
-- My profile: https://www.fallenlondon.com/profile/Gallmarch
|
|
|
+1
link
|