forked from rosshadden/sublime-xpath
-
Notifications
You must be signed in to change notification settings - Fork 0
/
xpath.sublime-settings
49 lines (49 loc) · 3.22 KB
/
xpath.sublime-settings
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
{
// specific attributes (or namespaces) to include in the xpath
// can use * as a wildcard, for example "xmlns:*" will show all attributes with an "xmlns" namespace, "*:id" will show all "id" attributes in any namespace
"attributes_to_include":
[
"id",
"xmlns", "xmlns:*"
],
// ignore the above and include all the attributes in the xpath
"show_all_attributes": false,
// whether tags and attributes should be treated as case sensitive for path index purposes - doesn't affect xpath queries
"case_sensitive": true,
// show only the hierarchy (without indexes) in the status bar
"show_hierarchy_only": false,
// when in hierarchy mode, whether to include attributes or not
"show_attributes_in_hierarchy": false,
// only copy unique xpaths when there are multiple selections
"copy_unique_path_only": true,
// query xpath in live mode - whether or not to show results as you type
"live_mode": true,
// default namespace prefix for xpath query when elements have xmlns attribute set
"default_namespace_prefix": "default",
// whether or not to show the namespace prefix that the xpath query will expect
"show_namespace_prefixes_from_query": false,
// whether or not to only show the current xpath in the status bar if the view is not dirty. Useful to save CPU cycles when editing a document
"only_show_xpath_if_saved": false,
// only show the first x number of results from the xpath query, to speed up result display. Set to <= 0 for no limit
"max_results_to_show": 1000,
// if you never want to it to remember the most recent query used (you can still get to it by explicitly using the history list), but want it to prefill the path with the path of the node under the first cursor, set this to true
"prefill_path_at_cursor": false,
// whether or not you want the plugin to show query history for all files, as opposed to only the current file. Note that query history for documents with no filename will not be preserved after Sublime restart if this setting is false
"global_query_history": true,
// the maximum number of (non-unique) xpath queries to retain in history. Note that the history can be manually manipulated at any time in the xpath_query_history.sublime-settings file
"max_query_history": 100,
// whether or not to normalize whitespace when showing the text results of an xpath query
"normalize_whitespace_in_preview": false,
// characters that, when typed in the xpath expression input panel, will automatically trigger autocompletions. If empty, autocompletion can still be triggered manually
"auto_completion_triggers": "'/[$@:( '",
// whether or not to include intelligent autocompletion suggestions from the document
"intelligent_auto_complete": true,
// when an element is selected via an XPath query, what aspect of it should the cursor move to? possible values: open, close, names, open_attributes, content, entire
"goto_element": "open",
// when an attribute is selected via an XPath query, what aspect of it should the cursor move to? possible values: name, value, entire
"goto_attribute": "value",
// which scopes to parse, show XPath at cursors for, and allow XPath queries on
"sgml_selector": "text.xml, text.html.basic - embedding.php",
// show XML parsing errors in the status bar
"show_xml_parser_errors": true,
}