Bug 501312 - JSON Editor improvement: enclose text within quotes
Summary: JSON Editor improvement: enclose text within quotes
Status: NEW
Alias: None
Product: JSDT
Classification: WebTools
Component: General (show other bugs)
Version: 3.8.0   Edit
Hardware: PC Windows NT
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Patrik Suzzi CLA
QA Contact: Victor Rubezhny CLA
URL:
Whiteboard: RHT
Keywords: helpwanted
Depends on:
Blocks:
 
Reported: 2016-09-13 05:04 EDT by Patrik Suzzi CLA
Modified: 2018-11-22 17:32 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Patrik Suzzi CLA 2016-09-13 05:04:52 EDT
I propose to improve our JSON editor, with nice feature, that also concurrent editors are missing.

When you write a sequence of characters without quotes, I'd like to press <CTRL+SPACE> and have the JSON editor proposing to "wrap previous text within quotes". 

The Wrap within quotes, should propose to wrap the text from the current position, back to the beginning of the line (or to the first special character), excluding whitespaces before and after the text sequence, but preserving spaces within the words (case of multiple words). 


Examples: 

Case 1: 

"my object":{
  bla bla bla bla|<CTRL+SPACE> ==> <WRAP>

result: 

"my object":{
  "bla bla bla bla"|

Case 2 :

"my-list": [
  {language|<CTRL+SPACE> ==> <WRAP>

Result:

"my-list": [
  {"language"|
  
Case 3 : 

"a value": this is my beautiful text|<CTRL+SPACE> ==> <WRAP>

Result:

"a value": "this is my beautiful text"|