Giter VIP home page Giter VIP logo

Comments (1)

corpnewt avatar corpnewt commented on August 18, 2024

Well, there are a couple issues with your approach:

  1. A String is not a collection, and does not support children. The parent node's type must be either Dictionary or Array
  2. The "New sibling of ..." contextual menu item adds a new sibling, not a child. Siblings exist on the same level as the item you clicked and they share a common parent node (see the outline below):
Parent
├── Child 1 (Child of Parent)
└── Child 2 (Child of Parent, and sibling of Child 1)
     └── Child 3 (Child of Child 2)
  1. If you right clicked a Dictionary or Array - you would also have a "New child under..." contextual menu item that would add a new child to the right-clicked node (example below):
    image
    The result of adding that new child would look like the following - which is the behavior you're looking for:
    image

Given the structure and functionality of the items allowed in plists - the script is acting as it should, and I'll close this issue as it's not a bug with the script, but by design.

-CorpNewt

from propertree.

Related Issues (20)

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.