intellij-snakeyaml icon indicating copy to clipboard operation
intellij-snakeyaml copied to clipboard

Support of index for array element and document number in breadcrumbs

Open timka-s opened this issue 9 years ago • 2 comments

Source yaml


---
my_root:
-    key: value
-    key: value

---
my_root:
-    key: value

Actual bread crumbs

  • _
  • my_root
  • my_root / key
  • my_root / key
  • _
  • my_root
  • my_root / key

Posible

  • 0
  • 0 / my_root
  • 0 / my_root / 0 / key
  • 0 / my_root / 1 / key
  • 1
  • 1 / my_root
  • 1 / my_root / 0 / key

timka-s avatar Feb 04 '16 13:02 timka-s

Dunno. Don't you think it will be extra clutter in breadcrumb line?

What is your suggested use case?

vermut avatar Feb 04 '16 14:02 vermut

By my opinion, breadcrumbs need for fast navigation in content.

In my experience it's very important orientate in data location, for example - big (10k lines) file with configuration information about system. Unfortunately, not for all data format developed specialized viewers.

Seems that this is ideal:

  1. Show full path of current line
  2. Ability to copy this path
  3. Comboboxes on each path item for navigation by siblings.

Display of index may be separate parameter in settings.

timka-s avatar Feb 04 '16 14:02 timka-s