Giter VIP home page Giter VIP logo

Comments (4)

corpnewt avatar corpnewt commented on August 18, 2024

Copy+paste already exists. You can also drag to re-order elements of the current plist, but Finder/Explorer interaction via tkinter isn't possible as far as I'm aware (at least not without reworking much of the script from the ground up).

With regard to copying, the script will format the xml representation of whatever you have copied to the clipboard. Copying the following:
image
Results in the following being copied to the clipboard:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>Some list</key>
	<array>
		<string>Item 1</string>
		<string>Item 2</string>
		<string>Item 3</string>
		<string>Item 4</string>
	</array>
</dict>
</plist>

Which can then be pasted into another window, or into a plain-text file.

-CorpNewt

from propertree.

resunne avatar resunne commented on August 18, 2024

Copy+paste already exists. You can also drag to re-order elements of the current plist, but Finder/Explorer interaction via tkinter isn't possible as far as I'm aware (at least not without reworking much of the script from the ground up).

With regard to copying, the script will format the xml representation of whatever you have copied to the clipboard. Copying the following:
image
Results in the following being copied to the clipboard:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>Some list</key>
	<array>
		<string>Item 1</string>
		<string>Item 2</string>
		<string>Item 3</string>
		<string>Item 4</string>
	</array>
</dict>
</plist>

Which can then be pasted into another window, or into a plain-text file.

-CorpNewt

Oh!
I found the copy-paste function, but it seems that only one item can be copied at a time. Does this tool have multiple selection capabilities?
Thank you!

from propertree.

corpnewt avatar corpnewt commented on August 18, 2024

There isn't multiple selection as the hierarchy of items cannot be preserved depending on what the user selects - I mimicked Xcode's single-selection for this purpose. If you select a parent element, all children of that parent are also copied (as in the Some list example above). I'm contemplating whether to reorganize the top level to display it contained in a "Root" element the way Xcode currently shows it - but that would take some time/work to accomplish as I'd need to change multiple things in the code.

-CorpNewt

from propertree.

corpnewt avatar corpnewt commented on August 18, 2024

The "Root" node support was added as of this commit which allows for copying/pasting the plist in its entirety as needed.

-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.