Skip to content

Commit

Permalink
Merge pull request #9871 from dghost/master
Browse files Browse the repository at this point in the history
is:indimloadout
  • Loading branch information
bhollis committed Sep 15, 2023
2 parents 6640906 + f1adc2e commit 5988ca8
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions config/i18n.json
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,7 @@
"Harrowed": "\\(Harrowed\\)",
"InLoadout": "is:inloadout shows items that are included in any loadout. Searching with inloadout: shows items that are included in loadouts with matching titles. When used with a hashtag, inloadout: shows items whose loadouts have the hashtag in the title or notes.",
"InInGameLoadout": "is:iningameloadout shows items that are included in any in-game loadout.",
"InDimLoadout": "is:indimloadout shows items that are included in any DIM loadout.",
"Infusable": "Shows items that can be infused.",
"IsAdept": "Shows weapons compatible with Adept mods.",
"IsCrafted": "Shows weapons that have been crafted.",
Expand Down
1 change: 1 addition & 0 deletions src/app/search/__snapshots__/search-config.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ exports[`buildSearchConfig generates a reasonable filter map: is filters 1`] = `
"helmet",
"hunter",
"incurrentchar",
"indimloadout",
"infusable",
"infuse",
"infusionfodder",
Expand Down
9 changes: 9 additions & 0 deletions src/app/search/search-filters/loadouts.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,15 @@ const loadoutFilters: FilterDefinition[] = [
(item) =>
Boolean(loadoutsByItem[item.id]?.some((l) => isInGameLoadout(l.loadout))),
},
{
keywords: 'indimloadout',
format: 'simple',
description: tl('Filter.InDimLoadout'),
filter:
({ loadoutsByItem }) =>
(item) =>
Boolean(loadoutsByItem[item.id]?.some((l) => !isInGameLoadout(l.loadout))),
},
];

export default loadoutFilters;
1 change: 1 addition & 0 deletions src/locale/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,7 @@
"HasOrnament": "Shows items that have an ornament applied.",
"HasShader": "Shows items that have a shader applied.",
"HoldsMod": "Shows armor compatible with a specific type of Seasonal Mod.",
"InDimLoadout": "is:indimloadout shows items that are included in any DIM loadout.",
"InInGameLoadout": "is:iningameloadout shows items that are included in any in-game loadout.",
"InLoadout": "is:inloadout shows items that are included in any loadout. Searching with inloadout: shows items that are included in loadouts with matching titles. When used with a hashtag, inloadout: shows items whose loadouts have the hashtag in the title or notes.",
"Infusable": "Shows items that can be infused.",
Expand Down

0 comments on commit 5988ca8

Please sign in to comment.