Giter VIP home page Giter VIP logo

x-path-walker's People

Contributors

lompik avatar syohex avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

x-path-walker's Issues

helm-x-path-walker not work

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

  1. may or may not change point
  2. changes major-mode
  3. modify buffer content

error for HTML

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

helm-x-path-walker modifies buffer

  1. Open JSON File
  2. Note that the buffer has not been modified (e.g. no asterisk appears by the buffer name).
  3. M-x helm-x-path-walker
  4. enter a string that matches one or more nodes in the JSON file.
  5. Hit C-j (Jump to path)
  6. Note that an asterisk appears near the buffer name.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.