Changes between Version 47 and Version 59 of Help/Action/Search
- Timestamp:
- (multiple changes)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Help/Action/Search
v47 v59 1 1 [[TranslatedPages]] 2 [[PageOutline(2-4,Table of Content)]] 2 3 3 4 = Search = 4 5 5 [[ Image(source:trunk/images/dialogs/search.png,middle)]] ''Keyboard shortcut'':'''{{{Ctrl+F}}}'''6 [[JOSMImage(dialogs/search,link=,48,middle,margin-right=20)]] ''Keyboard shortcut'': **`Ctrl+F`** 6 7 7 '''Search [wiki:/Help/Concepts/Object objects] in the current data layer using query language'''. This tool has different looks, depending on your expert setting ([#ExpertMode see below]): 8 **Search [wikitr:/Help/Concepts/Object objects] in the current data layer using query language**. \\ 9 This windows has different looks, depending on your [[JOSMImage(expert)]] [wikitr:/Help/ExpertMode Expert Mode] setting, [#ExpertMode see below]: 8 10 9 Search action will respect current [Help/Dialog/Filter filters] meaning it wouldn't return any of filtered objects. 11 * The search action will respect the current [wikitr:/Help/Dialog/Filter filters] meaning it wouldn't return any of the filtered objects. 12 * Colons (`:`) within ''keys'' and ''values'' need to be wrapped with quotation marks (`"`). 13 * Hover over a keyword in the search hints section to get a explanation and special examples. 14 * Double click on a preset listed in the search window to add the query to search for objects that match this preset. 10 15 11 Colons (`:`) within ''keys'' and ''values'' need to be wrapped with quotation marks (`"`). 16 [[Image(Search.png,link=,70%)]] 12 17 13 Hover over keyword in search menu to get textual explanation with simple example! 18 == Expert mode ==#ExpertMode 19 In [wikitr:/Help/ExpertMode expert mode], the following options are added: 20 * more keywords are listed (they work also in non-expert mode, but are hidden in the dialog) 21 * **standard/regular expression/MapCSS selector** radio button, see sections below for details 22 * **all objects** check box to include **''deleted''** and **''incomplete''** objects in the search 23 * **add toolbar button** see [wikitr:/Help/Action/Search#SavesearchqueryinMaintoolbar save search query in main toolbar] below. 14 24 15 [[ br]] [[Image(9229-search-expert-false-with-tooltip.png)]]25 [[Image(Search_expert.png,link=,70%)]] 16 26 17 == Expert mode == 18 In [Help/ExpertMode expert mode], the following options are added: 19 - more keywords listed (they work also in non-expert mode, but are hidden in the dialog) 20 - '''standard/regular expression/MapCSS selector''' radio button, see sections below for details 21 - '''add toolbar button''' covered in section "save search query in main toolbar" [Help/Action/Search#SavesearchqueryinMaintoolbar below] 22 23 [[Image(9229-search-expert-true.png)]] 24 25 26 == Examples == 27 27 == Examples ==#Examples 28 28 Some examples of queries: 29 30 29 * `type:way` selects all ways 31 30 * `name:Herrengasse` selects all elements with the given name … … 36 35 * `id:123465678` selects an object (way or node) with a particular id 37 36 * `timestamp:2010-11-01/2010-12-01` selects object with last change in November 2010 38 * See also [[Help/Dialog/Filter#Examples]] 37 * `preset:"Craft/Beekeeper"` selects objects that match the beekeeper preset 38 * See also [wikitr:/Help/Dialog/Filter#Examples Examples] 39 39 40 == Save search query in [wiki:Help/MainToolbar main toolbar] == 40 == Save search query in [wikitr:/Help/MainToolbar main toolbar] ==#SavesearchqueryinMaintoolbar 41 To ''save search as a button'' if you check **add toolbar button** checkbox, as soon as you click on [[JOSMImage(dialogs/search)]] **Start Search**, a button will be added to the main toolbar. which will execute the defined search expression each time, you press the button. 41 42 42 To ''save search as a button'' if you check '''add toolbar button''' checkbox, as soon as you click on [[Image(source:trunk/images/dialogs/search.png,middle)]] '''Start Search''', a button will be added to the main toolbar. which will execute the defined search expression each time, you press the button. 43 44 [wiki:Help/Preferences/Toolbar#Previouslysavedsearchresults Toolbar Customization] will let you modify icon, search query and tooltip. 45 46 As with any "button" you can always [Help/Preferences/Shortcuts assign a shortcut] to it. 43 * [[JOSMImage(preferences/toolbar,link=,24,middle)]] [wikitr:/Help/Preferences/Toolbar#Previouslysavedsearchresults Toolbar Customization] will let you modify icon, search query and tooltip. 44 * As with any button you can always assign a shortcut to it in [[JOSMImage(preferences/shortcuts,link=,24,middle)]] [wikitr:/Help/Preferences/Shortcuts Shortcut Preferences]. 47 45 48 46 == Regular expressions == 49 50 JOSM supports [http://docs.oracle.com/javase/8/docs/api/java/util/regex/Pattern.html Java regex syntax]. 47 JOSM supports [https://docs.oracle.com/javase/8/docs/api/java/util/regex/Pattern.html Java regex syntax]. 51 48 52 49 == MapCSS syntax == 50 See [wikitr:/Help/Styles/MapCSSImplementation MapCSS implementation] 53 51 54 See [wiki:Help/Styles/MapCSSImplementation MapCSS implementation] 55 56 == Fetch external file and replace selection == 57 52 == Fetch external file and replace selection ==#Fetchexternalfileandreplaceselection 58 53 A very under-used feature that lets you enter a web URL (`file://`, `http://`, `https://`, `ftp://`) in the search field. 59 54 60 JOSM will then attempt to load that URL, and select any objects that it finds referenced in that file. 61 JOSM will look for XML tags "way", "node", and "relation" in the document (clarify? examples?), and use their id attribute . 62 You can access another OSM file on your hard disk this way and have JOSM select all objects that are present in the file (provided they are present in JOSM's dataset too). 55 * JOSM will then attempt to load that URL, and select any objects that it finds referenced in that file. 56 * JOSM will look for XML tags "way", "node", and "relation" in the document (clarify? examples?), and use their id attribute . 57 * You can access another OSM file on your hard disk this way and have JOSM select all objects that are present in the file (provided they are present in JOSM's dataset too). 63 58 64 59 Similar thing is possible via: 65 * [wiki :Help/CommandLineOptions Command line parameter] during JOSM start-up66 * [RemoteControl Remote control] command 60 * [wikitr:/Help/CommandLineOptions Command line parameter] during JOSM start-up 61 * [wikitr:/Help/Preferences/RemoteControl Remote control] command 67 62 68 63 == See also == 69 * [Help/Dialog/Filter Filter] allows you to save and combine multiple search patterns between your JOSM sessions 64 * [[JOSMImage(dialogs/filter)]] [wikitr:/Help/Dialog/Filter Filters] allow you to save and combine multiple search patterns between your JOSM sessions 65 70 66 ---- 71 Back to [wiki:/Help/Menu/Edit Menu Edit][[Br]] 72 Back to [wiki:/Help Main Help] 67 Back to [wikitr:/Help/Menu/Edit Menu Edit] \\ 68 Back to [wikitr:/Help/Menu Main Menu] \\ 69 Back to [wikitr:/Help Main Help]
