TheSecEng
b53fc1137f
update: messages
2020-04-28 15:48:29 -04:00
TheSecEng
f48297e391
implement: updated Simple JSON
...
implement: JSON Lines Formatting
2020-04-23 14:24:05 -04:00
TheSecEng
8fa26e86ef
implement: changelog
2020-04-22 12:23:44 -04:00
TheSecEng
c5fcf50f2d
implement: get_selection_from_region
2020-04-19 16:31:11 -04:00
TheSecEng
cab4d367fb
implement: JSNO Lines formatting
2020-04-19 14:14:04 -04:00
TheSecEng
2c80b93b76
fix: Incorrect Status Message when validating JSON
2020-04-18 15:03:20 -04:00
Terminal
8abbb888dc
Merge pull request #114 from dzhibas/fix-st3/issue-43
...
Fix st3/issue 45
2020-04-17 22:46:32 -04:00
TheSecEng
3f2841d109
implement: jq path setting
2020-04-17 22:43:01 -04:00
Terminal
394353d5bf
Merge pull request #113 from dzhibas/fix-st3/issue-110
...
fix: implement duplicate key detection
2020-04-17 18:51:09 -04:00
TheSecEng
6c52f846b5
fix: implement duplicate key detection
2020-04-17 18:46:26 -04:00
Terminal
6fd83df6b8
Merge pull request #112 from dzhibas/fix/st3/issue-109
...
Fix/st3/issue 109
2020-04-17 18:39:48 -04:00
TheSecEng
9d17ced7f5
implement: remaining fix for #109
...
remove: no-sublime-package
2020-04-17 17:22:19 -04:00
Terminal
59c9f9babd
Merge pull request #88 from Silwing/keep-arrays-single-line-fix
...
Replacing more than wanted in array handling
2020-04-17 15:42:47 -04:00
Terminal
4d199f3b93
Merge branch 'st3' into keep-arrays-single-line-fix
2020-04-17 15:42:32 -04:00
Terminal
7cf04726d2
Merge pull request #81 from yukixz/fix-one-line-array
...
Sort matches before replacment on post process
2020-04-17 15:40:24 -04:00
Terminal
966d66eb02
Merge pull request #80 from tadashi-aikawa/master
...
Fix issue #62
2020-04-17 15:38:43 -04:00
TheSecEng
a261db2026
fix: issue #109
2020-04-17 15:33:46 -04:00
TheSecEng
1431afd3d7
implement: .gitattributes
2020-04-17 15:11:21 -04:00
Nikolajus Krauklis
ea5264c08c
Merge pull request #105 from mrliaocn/master
...
Fix an array parse error
2019-12-23 10:45:14 +01:00
mrliaocn
210d6a3a45
Fix an array parse error
...
When parse an array with config `keep_arrays_single_line = true`, `output_json.replace(m, replacement)` will replace more than once if another array is a subset of current.
Example:
```{"a": [1],"b": [2,3,1]}```
should be parsed like:
```
{
"a": [1],
"b": [2, 3, 1]
}
```
but actually got
```
{
"a": [1],
"b": [
2,
3,1]
}
```
2019-12-23 16:59:39 +08:00
Randi Katrine Hillerøe
742b26b920
Issue with replacing more than wanted
...
When finding array matches only the content of the array is replaced. This content can potentially be present in multiple places and will then break later array replacements. The below example can reproduce the issue:
{
"test": [3, 4],
"test2": [1, 2, 3, 4],
"test3": [3, 4]
}
With setting "keep_arrays_single_line": true
Basically the issue occurs for two arrays A, B where A is a suffix of B and A occurs earlier in the JSON document than B.
The fix is to match the whole array, not just the content. Then remove the brackets to split and join and re-add the brackets afterwards.
If the same array occurs multiple times then this will replace all instances during the first replace, however that should not cause any issues.
The fix prevents issues with replacing arrays that are subsets of other arrays.
2017-11-15 12:46:02 +01:00
Dazzy Ding
6e769bd62c
Sort matches before replacment on post process
2017-02-18 19:41:53 +08:00
tadashi-aikawa
391ebd8a8c
Fix issue #62
2016-12-18 21:14:12 +09:00
Nikolajus Krauklis
77a8fbab60
Merge pull request #76 from dzhibas/patch-1
...
Patch 1
2016-09-01 16:51:10 +02:00
Nikolajus Krauklis
c3eba76b12
Update README.md
2016-09-01 16:50:13 +02:00
Jamie Chapman
68655ee4f0
Fixed navigation in the README.
2016-09-01 15:22:04 +01:00
Nikolajus
66c302caa4
#71 ~ way to turn off validation on save
2016-07-18 10:38:10 +02:00
Nikolajus
3a3d95994d
Sublime 2 compatible
2016-07-15 21:35:07 +02:00
Nikolajus
d27edae3c0
fixing auto pretty only on json files
2016-07-15 21:00:38 +02:00
Nikolajus
7b7ca7b4c1
#40 pretty_on_save config to enable pretty on save
2016-07-15 17:41:46 +02:00
Nikolajus
62bdb1d281
#56 symbol search / goto / jump to source cmd+r
2016-07-15 17:26:56 +02:00
Nikolajus
a8648980af
small change
2016-07-15 16:08:01 +02:00
Nikolajus
06e2e604b0
Adding linter on save if syntax set is JSON, change a bit of line highlighter
2016-07-15 15:57:39 +02:00
Nikolajus
b8910d77c4
Merge remote-tracking branch 'origin/master'
2016-07-15 01:40:29 +02:00
Nikolajus
31e47da8c1
#65 - naive version of single quote detection, and trying to replace them into double quotes and parse again
2016-07-15 01:40:17 +02:00
Nikolajus
62eb05fcd5
description of options vals
2016-07-15 01:10:06 +02:00
Nikolajus
a054124590
moving max line length into config so people can change it
2016-07-15 01:03:35 +02:00
Nikolajus
56145e950c
change in default settings file path
2016-07-15 00:55:21 +02:00
Nikolajus
d055b8dc2b
updating readme
2016-07-15 00:52:36 +02:00
Nikolajus
084ea7c9d4
to fix path to default settings file, we need to place package in normal packages dir
2016-07-15 00:39:09 +02:00
Nikolajus
b3066c8014
simple regex just for line number, and some logic to highlight line above
2016-07-15 00:19:32 +02:00
Nikolajus
04296b2d13
#47 ~ adding support for folding array into single line if they are not reaching more than 120chars in a line
2016-07-14 18:26:13 +02:00
Nikolajus
b7f27df97e
#52 ~ adding MIT license https://tldrlegal.com/license/mit-license
2016-07-14 17:12:24 +02:00
Nikolajus
6d08a51286
#68 ~ adding separate menu item to force sorting on demand
2016-07-14 17:02:25 +02:00
Nikolajus
ae2e94bda3
#66 ~ adding into default values
2016-07-14 16:34:29 +02:00
Nikolajus
dd72cbfc96
#66 ~ moving line and value separators into config file, so people can change it easily to value they need
2016-07-14 16:34:19 +02:00
Nikolajus
7e93346c86
Merge pull request #67 from mrnobody0/master
...
Added keyboard shortcuts for plugin settings
2016-07-14 15:28:33 +02:00
Grzegorz Demecki
30fccd1056
Added keyboard shortcuts for plugin settings
2016-06-21 14:59:42 +02:00
Nikolajus
a5508b29ed
#58 - fixing issue with input encoding on win32 platform
2015-12-07 15:50:38 +01:00
Nikolajus
beb955f7c9
#54 - fixing issue with win32 and subprocess.Popen, stdin also needs to be piped. also removal of version check cause on win32 decoding throws exception and stops plugin
2015-12-07 15:41:57 +01:00