mechatroner / rainbow_csv

🌈Rainbow CSV - Vim plugin: Highlight columns in CSV and TSV files and run queries in SQL-like language
MIT License
626 stars 22 forks source link

[feature] Allow user to change the path of temp file #16

Closed Freed-Wu closed 3 years ago

Freed-Wu commented 4 years ago

Such as user can assign a variable to change ~/.rbql_table_index, ~/.rainbow_csv_storage to ~/.cache/nvim/.rbql_table_index, ~/.cache/nvim/.rainbow_csv_storage? or more compatible with XDG standard, $XDG_CACHE_HOME/nvim/.rbql_table_index, $XDG_CACHE_HOME/nvim/.rainbow_csv_storage?

Thanks!

Freed-Wu commented 4 years ago
let s:rb_storage_dir = $HOME . '/.rainbow_csv_storage'
let s:table_names_settings = $HOME . '/.rbql_table_names'
let s:rainbow_table_index = $HOME . '/.rbql_table_index'

Can these codes are changed?

dther commented 3 years ago

I made a patch for this! See my recent pull request, above.

mechatroner commented 3 years ago

I merged the patch. Thank you very much, @dther!