artem3213212 / cuda_csv_hilite Goto Github PK
View Code? Open in Web Editor NEWCudaText plugin: CSV Hilite
CudaText plugin: CSV Hilite
@OlehL
file
aa,bb,cc
aa,,cc
aa,bb,cc
каретка на колонке bb.
изза пустой колонки получается креш при Insert column righer
(я переименовал команды).
Startup: total: 800ms, including plugins: 40ms
Python 3.6.8
Loading toolbar config
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/home/user/.config/cudatext/py/cuda_csv_hilite/__init__.py", line 310, in rnew_col
self.current_col_do('rnew')
File "/home/user/.config/cudatext/py/cuda_csv_hilite/__init__.py", line 243, in current_col_do
_csv = parse_csv_line_as_dict(line, sep=option_separator)
File "/home/user/.config/cudatext/py/cuda_csv_hilite/csv_proc.py", line 64, in parse_csv_line_as_dict
res[col][1] += 1
KeyError: 1
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/home/user/.config/cudatext/py/cuda_csv_hilite/__init__.py", line 310, in rnew_col
self.current_col_do('rnew')
File "/home/user/.config/cudatext/py/cuda_csv_hilite/__init__.py", line 243, in current_col_do
_csv = parse_csv_line_as_dict(line, sep=option_separator)
File "/home/user/.config/cudatext/py/cuda_csv_hilite/csv_proc.py", line 64, in parse_csv_line_as_dict
res[col][1] += 1
KeyError: 2
IMO removing global option option_separator was not a good idea. It requires setting a separator char everytime a CSV document is loaded. Additionally the setting is not remembered across different CudaText sessions.
I would like to suggest the following changes:
I would like to suggest an improvement to the plugin.
When I tried the plugin I've noticed that it always uses comma as CSV separators. It would be useful to have the ability to change that via the config file to e.g. semicolon.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.