lompik / x-path-walker Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
When opening a JSON file, M-x helm-x-path-walker RET
show list of path, but when RET
or C-j
it changes major-mode to fundamental-mode
, and modify the buffer.
Cursor change only works for some key of JSON file.
Here is an example of a JSON file:
{
"name": "__MSG_appName__",
"version": "0.0.1",
"manifest_version": 2,
"description": "__MSG_appDescription__",
"icons": {
"16": "images/icon-16.png",
"128": "images/icon-128.png"
}
}
M-x helm-x-path-walker RET
not walk point for key such as input icons 16
, name
, version
.
but walk point for input manifest_version
.
In summary, it
When I query path in HTML buffer (which is in web-mode
) :
<!DOCTYPE HTML>
<html>
<head>
<meta encoding="utf-8">
</head>
<body>
<p id="hello">Hello, World!</p>
</body>
</html>
I got this error:
PATH-WALKER
Traceback (most recent call last):
File "/usr/lib64/python3.5/runpy.py", line 184, in _run_module_as_main
"__main__", mod_spec)
File "/usr/lib64/python3.5/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/home/stardiviner/.emacs.d/elpa/x-path-walker-20160822.1015/xpathwalker/__main__.py", line 15, in <module>
main(sys.argv[1:])
File "/home/stardiviner/.emacs.d/elpa/x-path-walker-20160822.1015/xpathwalker/__main__.py", line 11, in main
parse_args(argv)
File "/home/stardiviner/.emacs.d/elpa/x-path-walker-20160822.1015/xpathwalker/args.py", line 70, in parse_args
proc.parse_file(inputfile)
File "/home/stardiviner/.emacs.d/elpa/x-path-walker-20160822.1015/xpathwalker/lxml_Processor.py", line 85, in parse_file
self.parsed = lxml.etree.parse(file)
File "src/lxml/lxml.etree.pyx", line 3427, in lxml.etree.parse (src/lxml/lxml.etree.c:79841)
File "src/lxml/parser.pxi", line 1793, in lxml.etree._parseDocument (src/lxml/lxml.etree.c:116175)
File "src/lxml/parser.pxi", line 1819, in lxml.etree._parseDocumentFromURL (src/lxml/lxml.etree.c:116525)
File "src/lxml/parser.pxi", line 1723, in lxml.etree._parseDocFromFile (src/lxml/lxml.etree.c:115413)
File "src/lxml/parser.pxi", line 1126, in lxml.etree._BaseParser._parseDocFromFile (src/lxml/lxml.etree.c:110110)
File "src/lxml/parser.pxi", line 584, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:103584)
File "src/lxml/parser.pxi", line 694, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:105238)
File "src/lxml/parser.pxi", line 624, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:104147)
lxml.etree.XMLSyntaxError: Opening and ending tag mismatch: meta line 4 and head, line 5, column 10
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.