Open
Description
Hi. I found this plugin pretty useful but it padds incorrectly when columns contain character whose width is 2.
$ sqlite3
SQLite version 3.45.1 2024-01-30 16:01:20
Enter ".help" for usage hints.
Connected to a transient in-memory database.
Use ".open FILENAME" to reopen on a persistent database.
sqlite> .open sample.sqlite3
sqlite> CREATE TABLE sample (foo TEXT, bar TEXT, baz TEXT, PRIMARY KEY (foo));
sqlite> INSERT INTO sample (foo, bar, baz) VALUES ('yay', 'yayyay', 'ya');
sqlite> INSERT INTO sample (foo, bar, baz) VALUES ('いえい', 'いえいいえい', 'いえ');
sqlite> SELECT * FROM sample;
yay|yayyay|ya
いえい|いえいいえい|いえ
sqlite>
and then open connection to sample.sqlite3
and save on List
query displays;
1 foo bar baz
2 --- ------ ---
3 yay yayyay ya
4 いえい いえいいえい いえ
I'm not sure whether the fix should go in tpope/vim-dadbod
or here.
Other plugins like MeanderingProgrammer/render-markdown.nvim
redner well with japanese which indicates they have logic for those char width.
Metadata
Metadata
Assignees
Labels
No labels