[ 
https://issues.apache.org/jira/browse/COUCHDB-2160?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14032000#comment-14032000
 ] 

Sebastian Rothbucher commented on COUCHDB-2160:
-----------------------------------------------

definitely +1 on the possibility of editing a string verbatim. Imagine e.g. a 
couchDB document containing an angularJS-Controller function. it would be 
"controller: {"function blaController($http){\n\t$http({method:\"GET\" (and so 
on) - the backslashes will kill you. BTW: see any map / reduce function in the 
"normal" source view: same thing.

But maybe we don't even need a full-fledged 2nd view - and can provide an even 
better support than Fouton had: imagine the cursor is placed over a string 
(with quotes, newlines, etc. escaped) and pressing a button "edit this string 
in a new window" (I'll attach a screen in a second). A window opens up, one can 
edit the controller function, map function, etc. and press "save" to get it 
back into the Fauxon plain-JSON editor. Nicely escaped, off course. 

I started a small prototype at 
https://github.com/sebastianrothbucher/couchdb/compare/2160-string-edit to make 
it more clear (and I'll attach a screenshot). 

To do cool stuff with angular and others I'd find this very useful. Fauxton is 
the one-stop-shop for CouchDB so far, and I'd not like to have a separate 
dialog just to conveniently store some JavaScript. Rather, I'd prefer the 
Fauxton-all-you-need-one-stop-shop. 

Is this a way of moving forward? I'd certainly volunteer to implement that...

> Fields-view for documents
> -------------------------
>
>                 Key: COUCHDB-2160
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-2160
>             Project: CouchDB
>          Issue Type: New Feature
>      Security Level: public(Regular issues) 
>          Components: Fauxton
>            Reporter: Alexander Shorin
>         Attachments: edittext_screen.png
>
>
> Futon provides two representation of documents: raw JSON and, how I called 
> it, fields-view where document is represented in nicer k-v table form. This 
> representation is very user friendly, since you don't have to care about JSON 
> syntax - you don't even have to know about it. You just double clicks on 
> value, enters something and Futon guesses right type for the input. No 
> commas, no quotes, no brackets, just keys and values.
> Currently, Fauxton has no such view providing documents representation only 
> as raw JSON (thought it has very rich editor for it).



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to