Skip to content

Commit

Permalink
Update SearchDialog.java to show hint for key is null
Browse files Browse the repository at this point in the history
The current example of "key=" is not working for me for me and don't make a lot of sense. can a key even exist without a value? A more common scenario is searching for objects missing a key, which I've changed this hint to.
  • Loading branch information
andrewharvey authored Dec 22, 2024
1 parent df5e76b commit 55b1820
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/org/openstreetmap/josm/gui/dialogs/SearchDialog.java
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ private static JPanel buildHintsSection(AutoCompComboBox<SearchSetting> hcbSearc
.addKeyword("<i>key</i>=<i>value</i>", null, tr("''key'' with exactly ''value''"))
.addKeyword("<i>key</i>~<i>regexp</i>", null, tr("value of ''key'' matching the regular expression ''regexp''"))
.addKeyword("<i>key</i>=*", null, tr("''key'' with any value"))
.addKeyword("<i>key</i>=", null, tr("''key'' with empty value"))
.addKeyword("<i>key</i> is null", null, tr("matches if ''key'' does not exist"))
.addKeyword("*=<i>value</i>", null, tr("''value'' in any key"))
.addKeyword("<i>key</i>><i>value</i>", null, tr("matches if ''key'' is greater than ''value'' (analogously, less than)"))
.addKeyword("\"key\"=\"value\"", "\"\"=\"\"",
Expand Down

0 comments on commit 55b1820

Please sign in to comment.