vessillo / foxreplace

Automatically exported from code.google.com/p/foxreplace
0 stars 0 forks source link

ability to bulk add or import substitution list (e.g. via comma separated values) #91

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. fox replace options
2. add
3. substitutions tab

What is the expected output? What do you see instead?
- right now each "find" and "replace" item has to be inputted individually...  
which is very time consuming because each time i replace, i have to manually 
type in 30-50 sets of "find" and "replace" items
- instead, we can we import a csv file or just copy and paste into a text box 
with 2 columns, this will be SUPER HELPFUL
- having A CHOICE of separator would be AMAZING (i.e. separated by comma, or 
tab, or carrot(^) or anything else)
- e.g. 2 columns inputted to text box (seperated by comma)
i,we
they,them
01,2093
0.21,0.26
0.61,0.66
0.31,0.36
0.76,0.81
0.06,0.11
0.36,0.41
0.26,0.31
0.41,0.46
0.51,0.56
1.01,1.06
0.11,0.16
0.66,0.71
0.56,0.61

What version of the product are you using? On what operating system?
- version 0.13.3
- firefox 15.0.1
- mac os x 10.6.8

Please provide any additional information below.

Original issue reported on code.google.com by acg...@gmail.com on 2 Nov 2012 at 6:18

GoogleCodeExporter commented 9 years ago
sorry...  this should be enhancement... don't know how to change it back

Original comment by acg...@gmail.com on 2 Nov 2012 at 6:20

GoogleCodeExporter commented 9 years ago
Hi, currently you can import and export substitution lists from the main 
options window. Isn't this sufficient? Why?

As I have understood your suggestion, it looks like duplicated functionality, 
but maybe I haven't fully understood the issue.

Original comment by marc.r...@gmail.com on 2 Nov 2012 at 2:03

GoogleCodeExporter commented 9 years ago
hello!

yes there is an import feature... but the file format is either .json or . xml 
(which i have no idea how to use)

i went through the docuumentation -> chrome://foxreplace/content/help.xhtml

and didn't find how to use the import and assumed the requested feature didn't 
exist...

is it possible that you explain how to format a file for import?

i am thinking a csv file would be easiest for the average user?

THANK YOU!

Original comment by acg...@gmail.com on 2 Nov 2012 at 5:54

GoogleCodeExporter commented 9 years ago
You can find general documentation on JSON here: 
https://developer.mozilla.org/en-US/docs/JSON . But to see the structure of the 
JSON format used in FoxReplace you have the define a few substitutions, export, 
and then take a look at the resulting file.

Maybe a CSV-based format would be easier for average users, but the problem I 
see with it is that it is too simple to represent the complexity of the data I 
need to store. See that it's not only input and output values, but also 
substitution settings (input type, match case), a list of URLs and a list of 
substitutions for each group, group settings (HTML), and a list of groups. 
Maybe this could be represented in CSV in some manner, but in the long run it 
is unmantainable.

Original comment by marc.r...@gmail.com on 3 Nov 2012 at 2:13