JSON tipy does not work from clipboard

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • honzamac
    New User
    • Jan 2015
    • 1

    JSON tipy does not work from clipboard

    I've created own file format for json.
    I've put there automatic tidy function on Loading: "cat %s | python -m json.tool > %t"
    This just takes file and do tidy an write to file.

    The problem is comparing from clipboard. BC detects JSON format, but i tries to do "Loading" part and it freeze a is totally slow.
    It's probably trying to tidy each part of json.

    Is there a way how to automatically tidy json from clipboard?
    Maybe if BC do automatically temp file a then use "Loading" transformation would be much safer.

    Thanks for any help

    P.S.: Mac os x Yosemite, 10.10.1 (14B25)
  • Aaron
    Team Scooter
    • Oct 2007
    • 16026

    #2
    Hello,

    How are you loading your files when pasting from clipboard? From my test setup, I created a new format for json, associated with *.json. Opening a json file then uses the format, but pasting into a blank Text Compare should use the Everything Else (default) format and not perform any conversion.
    Aaron P Scooter Software

    Comment

    Working...