Change how path completion suggests nodes

Path completions now include module names only if the top-level module
is different. Module names in the middle of paths are redundant and it
makes auto-completed paths shorter. Ideally, the program should be able
to complete nodes without module prefixes and, optionally, if the user
started typing a module name, be able to complete nodes with module
prefixes. However, I don't think it is such an important feature,
because, as was said, module names are redundant (if equal to top-level
module), so the completion doesn't suggest it.

Change-Id: Iedabd017d0415a919a45be4aca30a5b353193f28
2 files changed
tree: 6602e1d9fb5ed14d10f9c993be28ce51d9d27be3
  1. .clang-format
  2. .gitmodules
  3. .zuul.yaml
  4. 3rdparty/
  5. CMakeLists.txt
  6. Doxyfile.in
  7. LICENSE
  8. LICENSE.md
  9. README.md
  10. ci/
  11. cmake/
  12. docs/
  13. example-schema.yang
  14. src/
  15. submodules/
  16. sysrepo_vars.hpp.in
  17. tests/
README.md

Console interface to NETCONF servers

Credits

Copyright © Faculty of Information Technology, Czech Technical University in Prague, https://fit.cvut.cz/ . Copyright © CESNET, https://www.cesnet.cz/ . Most of the code was written by Václav Kubernát (FIT ČVUT) and Jan Kundrát (CESNET). The project is distributed under the terms of the Apache 2.0 license.