Using Kate text editor to write new .csv and can't save file
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Using Kate text editor to write new .csv and can't save file
I copied a bunch of comma-separated data from the web and pasted to a blank doc in Kate, the text editor. I select the "save as..." and for the name I type "flights.csv" for the new file and I get the following error window message:
Quote:
The document could not be saved, as it was not possible to write to /home/deret/Documents/flight.csv
Check that you have write access to this file or that enough disk space is available.
I tried again without .csv and got the same error.
I am working in my own directory. What do I need to do to write Kate output to files in my /home?
I don't know whether this helps and I have little experience with *.csv files other than with programs that natively export/import to *.csv, but I opened Kate and went to Tools-->Highlighting, and csv was not one of the choices.
Usually I have in a session into Kate about 2000 files open. All saving all the way.
I think that you either you have problems with the permissions to that specific folder, either you have lines too long, as too many characters in a single line.
There is a limit, in my settings it is 16384 chars, and over it, the file is open read-only and it cannot be modified or saved.
Long story short, this is not a limitation specific to Kate, all text editors have a similar one, excluding the binary editors.
I don't know whether this helps and I have little experience with *.csv files other than with programs that natively export/import to *.csv, but I opened Kate and went to Tools-->Highlighting, and csv was not one of the choices.
I made a different file and saved it as .txt and without an extension. Still same error. The file only had "this is a practice file" in it. I'm guessing the problem is a permissions thing. What would I have to change on Kate to have permissions to write to my own /home folder?
Your /home/deret/Documents is owned by root. Of course that you have files permission errors!
Long story short: NEVER play as root in the users homes, and if you do it, you should chown according your interventions. IF you do not do that, shit happens.
Last edited by Darth Vader; 10-04-2017 at 09:07 PM.
hmm... I don't remember doing anything like that. There are other directories in /home/deret and I don't have problems with them. --okay, I do remember where I had moved some files around and probably used mkdir as root and didn't think about the fallout. So anyway, now I need to fix it. Thanks for the help!
Last edited by deretsigernu; 10-04-2017 at 09:36 PM.
Reason: add more info
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.