You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,6 +12,7 @@ _Changes since 1.7.3_
12
12
- Cookie support (Default disabled. Enable in the Subproject Configuration Dialog)
13
13
- On pre-flight, update environment variables according to request headers, query parameters and bodies
14
14
- A "Save Raw" button at the response viewer to save raw response body to a file
15
+
- A floating copy button, next to a literal value under the mouse cursor and in the response body JSON, for copying the literal value
15
16
16
17
### Changed
17
18
- The "Copy All" button near the response body viewer has been relocated to the upper level, as it copies the whole Request and Response rather than only response body
val literal = bigTextValue.substring(textLiteralRangeForCopy).string()
729
+
if (syntaxHighlight ==SyntaxHighlight.Json&& literal.startsWith('"')) {
730
+
try {
731
+
// deserialize quoted string
732
+
// TODO refactor this function not to couple with DslJson directly
733
+
val bytes = literal.toByteArray()
734
+
val reader =DslJson<Any?>().newReader().process(bytes, bytes.size)
735
+
reader.nextToken
736
+
StringConverter.deserialize(reader)
737
+
} catch (_:Throwable) {
738
+
literal
739
+
}
740
+
} else {
741
+
literal
742
+
}
743
+
},
744
+
size =16.dp,
745
+
innerPadding =2.dp,
746
+
color = themeColours.syntaxColor.stringLiteral,
747
+
modifier =Modifier
748
+
.offset(
749
+
x = (lineNumberColumnWidth + showCopyPositionAt.first).toDp(), // this button is floating above the `Box` containing line number view and the BigTextLabel
0 commit comments