324 points · by evanem · 3y ago · 155 comments
Modern CSV is a tabular file editor/viewer for Windows, Mac, and Linux. I developed it out of frustration with how spreadsheet programs handle CSV files. Plain text editors, on the other job, do a poor job of handling columns. With Modern CSV, I attempt to combine the best of both worlds.
With version 2, you can expect to see an improved UI/UX, better performance, more useful features, updated documentation, and for Mac users, native Apple Silicon support.
If you haven't tried it yet, give it a shot and let me know what you think!
(It's easy to assume people will click the link from that page to https://www.moderncsv.com/ in order to find out more, but I'm not sure that's always a safe assumption!)
A bit surprised to see that a specification had improved UI before it dawned on me that it’s a CSV reading.
"How can one make a _modern_ version of the CSV file format, let alone a second?"
Perhaps, but it's very easy to confuse with it being about a modern version of the CSV standard.
In fact that would be probably the default interpretation.
This is perfect for a tool which most people, including those who would derive the most benefit from it, won’t even hypothesise the existence of.
I assumed from the HN headline that Modern CSV version 2 was an iteration on some new CSV specification.
i can't be the only dev who saw this headline and wondered whether some entity was pushing for a csv standardization (e.g. guarantees about encoding, escaping, etc.)
Check out WebCSV*:
<http://www.w3.org/TR/tabular-data-primer/>
* I'm aware that "WebCSV" isn't the real name, but it should be.
This isn't about a name "for an actual standard that takes inspiration from them" but for a CSV editing software.
1. The first question I had was "How is this better than Excel?" The Google result for your site directly pulls up this very informative blog post, https://www.moderncsv.com/why-excel-sucks-and-modern-csv-is-... . Note my 2 cents is that I would more prominently link this, or at least have a more prominent section, from your home page.
2. Simple AF pricing. So rare these days. Kudos!
- I couldn't figure out how to paste a CSV from clipboard and have it parse the CSV as-is. Instead, it just creates a single column with each line as a row. I think "Split Selected Cells Horizontally" might do it, but that's locked behind the paid version, so I can't verify. Either way, this seems like basic functionality that should be free.
- Selecting seems buggy; if I click down on a cell in row 0 then drag down, it only selects rows 0-2 and then stops. If I select anything below row 0 then drag up or down, it selects everything. I'm on Linux, maybe just a Linux thing? I dunno.
- I'd appreciate a "paste from MySQL table" tool or something; I tend to copy table output from my terminal (i.e. a +----+----+ kind of table), it would be nice to not need to switch the MySQL output to CSV first if I want to paste it in here quickly to futz with it.
- It's very annoying to see tons of options and buttons that I can't use at all in the free version. Please mark those up-front in the UI/command palette as not being available, it's not fun to click something, get a popup, have to dismiss it, then hunt elsewhere for a solution because I don't have access to it. Feels a bit dickish so it makes me want to pay for it less, tbh.
- As others have said, pricing seems fair, but I'm not convinced yet so I'll wait for now.
2. That first bug is known and for reasons I don't recall, is much trickier than one would think. It's still on my to-do list. The thing with dragging and selecting everything sounds like it might be scrolling really fast.
3. I'll consider it. Perhaps a smart paste option where it attempts to determine the nature of the text (e.g. whether it's a database table or what kind of delimiter it uses) and pastes accordingly.
4. I'll give this some thought as well. I'm not sure that disabling the commands is the way to go if the user doesn't know why they're disabled.
5. If you have any more questions, feel free to ask. Also, if you do buy and change your mind, just let me know and I'll issue a refund right away.
Naturally, I installed Modern CSV seconds after seeing this post.
I'm on MacBook M2, using trackpad 1) the vertical scroll is slow and un-mac-like, unnatural; and 2) horizontal scroll basically doesn't work, it scrolls a column or a half on a full swipe, but it does improve somewhat when there's less content in the cells.
I admire your work, please keep on going, there's a huge need!
I would like to be able to have some kind of scroll options available, choosing between smooth-scrolling or scroll by row/column would be great. Removing the scroll speed limit would be good too.
[1]: https://flatpak.org/ [2]: https://flathub.org/
The widgets like inputs or selects also look weird, sometimes they don't have enough padding and content touches the edges, sometimes there is too much padding. In a numeric input there are icrement/decrement buttons, but they are so tiny that I doubt they are usable even with an Apple touchpad. The text in inputs is sometimes aligned to the left and sometimes centered without obvious reasons.
The command search popup is transparent and the background seen behind it makes reading the text harder.
Edit: I found it under 'set theme'
I REALLY recommend doing light mode as the default, not dark mode. I imagine like 1% of people would actually want to look at big data as white text on black.
This is all fine for an open source project but once people are paying for a tool, using it daily, and are promised certain updates coming soon, it's not great to have that update delayed by a full year.
At the same time, the "Premium Personal" price is a one-time payment of $29. My basic chicken sandwich meal at Whataburger was $11 dollars.
Point being, it's obvious to me that this is 1 dude who is developing this, so I'm not going to expect flawless communication for the price of 2.5 Whataburger meals. I'd much prefer to deal with that than have something like a monthly subscription SaaS charge.
Doesn't have to be flawless but a full year delay is a little much. I'm not even with that employer anymore.
These coffee/meal prices differ a lot between countries. Similarly, there are huge differences how often people living in different countries can easily afford to eat out or buy a coffee at some café.
Also HN: Why is the one developper that work on my software when he can because he can't make a living out of my one time 30$ payment doesn't ship all the features and versions I expect in a timely manner
Support contracts start at 500-1000$ a month these days, if you depend on it for your day job maybe invest in your tooling correctly...
- we would have been fine continuing to use a non-expiring v2 beta, but the developer set it up differently (eventually, a non-expiring version was provided)
- we never asked for support, just to not have the software expire without a replacement available
> maybe invest in your tooling correctly...
So your suggestion is that businesses should avoid independent developers altogether? That's a great way to be supportive of the little guy.
Heres a link to a big CSV if anyone else looking for one to test: https://github.com/datablist/sample-csv-files/raw/main/files...
https://csvplot.com/remote_file.html?url=https://media.githu...
I was wondering if you had added a feature to make selecting and deleting massive amounts of rows/collumns easier.
Currently: I have a CSV with 5 million rows, I want to delete all rows that have "/gallery/" in collumn B. I have to filter that row then I have to select ALL 2 million rows and delete them. But that's so many rows that ModernCSV gets stuck so I have to delete 5,000 or 10,000 at a time if I can remember correctly. And once it starts deleting there is no message, progress bar, or sound notification when it gets done. On very large CSVs this takes forever.
Request: I wish I can somehow ask ModernCSV to "delete all rows" if "collumn B" contains the string "/gallery/" and just click "RUN" then I can walk away and go work on something else until a sound plays and I know it's done.
Maybe you have something similar already implemented?
I'll set up a similar file and see what I can do to improve this.
For now, one alternative is to filter OUT the data you want removed, then use the Remove All Filtered Out and Hidden Data command.
brew install --cask modern-csv ==> Downloading https://formulae.brew.sh/api/cask.jws.json ####################################################################################################### 100.0% Error: Download failed on Cask 'modern-csv' with message: Failure while executing; `/usr/bin/env /opt/homebrew/Library/Homebrew/shims/shared/curl --disable --cookie /dev/null --globoff --show-error --user-agent Homebrew/4.1.5\ \(Macintosh\;\ arm64\ Mac\ OS\ X\ 13.5\)\ curl/8.1.2 --header Accept-Language:\ en --retry 3 --fail --location --silent --head https://t6a3m9g6.rocketcdn.me/release/ModernCSV-Mac-v2.0.2.d...` exited with 6. Here's the output:
curl: (6) Could not resolve host: t6a3m9g6.rocketcdn.me
Keyboard ninjas would prefer to have a modal editing option where instead of this abomination of a shortcut you could have much shorter sequences (as an illustration):
C,L for left
C,; for right
with an option to make L/; sticky (repeatable movements without having to press C again) or be able to hold C and just press L/; to move
(by the way, sequences cmd+A,B can't be used since they're overriden by cmd+A but it should invoke cmd+a only after some timeout when you haven't pressed B
also scrolling on a Mac is broken, and in general would be nice to limit scrolling off-screen to some # of rows/columns, it doesn't make sense to be able to scroll into an empty infinity)
> also scrolling on a Mac is broken
Tell me more, pls.
Scrolling is slow by default an doesn't respect scrolling speed like most of the other apps do (e.g., fast scrolling with a held modifier using linearmouse is just as slow in MCSV2 without a modifier)
Which is a long winded way of saying no one way is perfect for all. Some people even apparently will willingly use a mouse!
Thanks for the explo for your perspective on scrolling. Because i'm an emacs user I use search a lot more than actually scrolling.
Think it's perfectly fine to tier features and make some stuff gated at a higher price.
Especially when you consider that it's a one time purchase and also it's an editor for a standard that will never change (you won't have to upgrade in a year to support features in the latest version of CSV)
Just to give you some info, I just opened a csv that's 3.5 GB and has about 1.6 million rows. It took about 30-40 seconds to load nad it's only using 215 MB of ram. I have managed to crash it a few times but I think it's understandable considering the huge amount of data it's dealing with.
This is a huge problem when dealing with European and UK/US CSV formats (or whatever you mat want to call them) for me daily.
Excel only auto opens the format supported by the current locale, so anything else will just not be detected.
That used to be the default behavior in Excel for years that you'd get the CSV data "wizard" but they split the behavior and "hid" the better behavior on the Data tab of the ribbon.
(The Data tab also includes From JSON which is great at avoiding building CSV files for Excel people if you can just teach them From JSON. Most don't actually want to learn and I still wish Excel would support an XLJSON or something like that file extension to give people the double-click a file they want, but with something much more useful and clearer than CSV.)
Basically, my team is curious if there's a smaller, lighter, local-alternative to Airtable, which we can collaborate on with Git. It's a big ask and maybe not on your roadmap, but something that is on our minds.
I do that. Many, maybe linked, CSVs. Load all into SQLIte, query, filter, sort, etc.
In the repos to process we have only scripts to load and filter. The SQLite things are short lived.
Also, memory only SQLite FTW!
Really nice.
Airtable has a great UI but the data becomes isolated from our ETL script and it means we have to re-download and export to CSV to use in other contexts.
It'd be great if we could load a CSV into a desktop editor, and then have it store certain views/linked records to other CSV files in a local "db.json" file.
As for versioning sqlite data, just don't ever update or delete any rows but instead only ever insert the updates as a new row. Potentially you could add a 'deleted' boolean and 'inserted' date columns to the tables you want to version. That way you can use '... and deleted = false' to filter out old data and you also know when updates occurred.
On a side note: Howcome MS failed so hard at solving this problem with Excel?
Considering it's old age and the budget behind it it would seem like Excel should be THE solution to anything to do with tabular data by now.
If they change anything about how the (very broken) way they handle CSV files in Excel, it will break so many things. So they dare not change it. In fact genes have been renamed because Excel is so broken but unlikely to change:
https://www.popularmechanics.com/technology/design/a33549357...
I'd not heard of parquet before today, but a cursory glance reveals it to be a stupid format. It's sold as 'smaller than csv', but size isn't the problem CSVs are solving. It's that with the CSV format it's trivial to output or read data. With Parquet it's not.
I'd imagine if you were storing data on a server it would be better to import it into a proper database rather than storing it as a file on something like S3. Even compressing a CSV file with gzip would reduce the file size similarly and in a more standardized way if that's what you really need to do.
I tried testing it out just now by copying a 5 million row by 14 column selection of random data, ~620MB, and it completely freezes up right after hitting command-c on my 2019 macbook pro 15. Even after waiting minutes, it's still frozen.
1. Open Modern CSV.
2. Open any file.
3. Select any cell.
4. Hit ctrl-c.
Expected: The cell contents would be copied.
Actual: The program becomes completely unresponsive with high CPU usage and must be force-quit.
Happy to help however I can, because so far I really like this product and I want to be using it.
For those scenarios when someone tries to copy 5 million rows by 1000 columns for example.
Excel is a known issue for many text data files. My least favorite Excel-ism is when it changes the names of genes to dates. Many genes recently changed names to avoid Excel-related issues. As an example: OCT4 became POU5F1, and SEPT1 became SEPTIN1. Otherwise, if you're looking at gene related data, you'd have to be very careful when looking at gene names that you didn't accidentally save the file with a few "dates" as opposed to gene names. (Which is even more confusing when you realize that dates are stored as integers in Excel).
https://sites.google.com/view/ryzvonusef/process
Wasted a week's worth of effort, but I learnt a valuable lesson.
Unicode encoding or rather anything non-ASCII is also prone to cause trouble. The automatic conversion of quoted(!) digit strings to numbers can be worked around by appending a tab character. Line breaks within a cell are a big headache, however, and I believe the U+2028 code point can still not be used instead.
when i open it using modern csv, the header is detected as a single column while the rest of the data is being read just fine.
using it on windows, though.
Good luck on your project!
What are the benefits over converting the CSV to a SQLite DB and using a DB GUI?
This fella has got over the biggest, greatest hurdle of them all - actually getting something out of the door - so should be commended for that. This is not to say that well thought out criticism isn't useful, of course it is, but maybe lead your comment with "Hey, amazing work on getting this far! ...if I may here's a couple of extra suggestions.." rather than "you should name it X / do Y / I didn't like Z".
Just a thought.
I downloaded Modern CSV, hopeful that it would be a quick and easy solution. I really wanted to like it! I even paid for it. I made it my default app for opening CSV files. But after a week or so, I gave up in frustration. It has lots and lots of editing functions (like, 50+ editing commands!) but first and foremost it has to work as a viewer, and it doesn't. It has too many design decisions that don't make sense for a viewer.
Take, for example, the most common use case: I want to see what's in a CSV file, and it has a header row, because the vast majority of CSV files have a header row. What are the things I want to know?
1. What columns are present?
2. What do the columns mean?
3. What does the data look like?
Let's see how this goes.I. Headers
The first thing that stands out is that, by default, Modern CSV highlights the headers, but — misleadingly — doesn't freeze them. What's the point of headers if they are not frozen? As soon as I scroll, the answer to #1 is gone. Within the first 10 seconds of using Modern CSV, I find myself hunting for the "Freeze Headers" command.
I right-click on the headers, but it's not among the 25+ items in the context menu. I have to scan through all the pull-down menus, to find the single most commonly needed command: it's buried on the second level of menus, after 27 other menu options. 27! It is also mixed in with a few other similar commands, so I have to think about which one to pick:
Toggle Highlight Header Rows
Toggle Highlight Header Columns
Toggle Freeze Header Rows
Toggle Freeze Header Columns
Toggle Freeze Header Rows and Columns
What are "Header Columns", by the way? In my whole life, I have worked with many, many CSV files and I've never seen header columns. Clicking Toggle Freeze Header Columns doesn't seem to have any visible effect.Ah, now I've found "Toggle Freeze Header Rows." I will need to do this 99% of the time I open a file. Does it have a hotkey? No. I will have to navigate through two levels of menus to find item #27, every time.
II. Hotkeys
I know I won't last long if I have to navigate two levels of menus every time I open a file, so I look for a way to add a hotkey. Unlike every other Mac app, Modern CSV doesn't have a preference menu in the usual place, and Command-Comma doesn't open the preferences.
To add a hotkey, you must edit a CSV file of hotkey definitions, which means learning how the file is organized and the syntax for specifying hotkeys. Deviously, the column with the hotkeys in it is not the one you edit. Editing this column does nothing; you must instead edit the empty column next to it. This is explained in the instructions, but of course you can't see them, because they disappear when you scroll down to find the row you want.
Also, as you scroll down to find the "Toggle Freeze Header Rows" command, the column with the command names occasionally disappears off the left side of the screen because Modern CSV insists on letting you scroll over to column 49 even though there are only 3 columns in the file. Which brings me to...
III. Scrolling
Having solved this, my the next action is to scroll around to look at the data. And here I am stymied again: the scrolling response is maddeningly hard to control, for four reasons.
First, vertical scrolling happens at a constant speed. It doesn't matter how slow or fast you swipe your fingers on the touchpad; there are exactly two speeds: zero, and about 60 rows per second. If you are scrolling down to row 1,000, you must swipe and swipe and swipe continuously, and wait for ages until you get there. The constant speed also means that if you want to adjust the view up or down by one or two rows, it's impossible; the view will jump by 7 or 8 rows no matter how tiny your swiping movement.
Second, scrolling will continue coasting after you stop, for some distance. This distance varies, but it is too far; when I swipe only a small amount, the scrolling continues for about 30 rows. I tried a few tiny swipes, gradually swiping a little more and more, to try to figure out the algorithm; and it appears that the coasting distance stays at zero for the smallest swipes, and then suddenly jumps from zero to about 30 rows. Again, the discontinuity makes it very difficult to control.
Third, horizontal scrolling only moves by whole columns. You get no visual feedback until the view jumps by an entire column, and columns in CSV files can often be quite wide. This makes it very hard to control how much you scroll, and again, hard or impossible to shift your view by just one or two columns.
Fourth, Modern CSV always shows 50 columns, even if your file has fewer. That means there will often be a giant empty space off to the right of your data. And because there is no feedback until the view jumps by an entire column, it's easy to accidentally scroll over and get lost in that empty space.
The first of these problems alone is enough to make me want to quit the app.
IV. Filtering
If the header doesn't make it obvious what's in a column, a good way to understand it is to see what values are present. The Filter feature in Google Sheets and Excel is great for this: you get a dropdown menu in each column that shows you a list of unique values in that column, which you can tick on or off to apply a filter.
Modern CSV doesn't have this feature. "Filter Selected Column" is in the context menu for a column, which is great, but it doesn't work; it's a paid feature. This is basic stuff; you can't explore a 10,000-line CSV file without filters.
In a licensed copy of Modern CSV, "Filter Selected Column" brings up a dialog with ten lines of syntax instructions for me to read, and a blank text field to enter a filter expression. I don't want to have to read syntax instructions to apply a filter. If the window is a normal width, I can't even see all the syntax instructions, because they are cut off and cannot be scrolled into view. Resizing my window won't help; I have to close the dialog, resize my window, and open the dialog again to read the instructions.
The filtering syntax has three different ways to specify a range of numbers (>=20 & <=30, or 20+ & 30-, or 20–30), but if I want to filter for a particular string value that appears in half the rows, I have to retype the string into the box. In Google Sheets or Excel, you just tick a checkbox.
—
The whole app feels like this. Sophisticated operations are possible, but the most basic, common operations don't work properly or are unnecessarily complicated. I was really sad to go back to Excel because it's so heavy and slow, but I went back to Excel.
I know this is a long rant, and no one asked for my advice. But I hope this is helpful information. If I were to advise the author, I would recommend:
Make easy things easy.
Make scrolling work.
Choose good defaults.
Provide filtering in the free version, and make it easy.
That would bring me back to Modern CSV.—
All these things become obvious if you watch someone try to use the app for the first time. Perhaps even better advice would be:
Stop adding features.
Watch someone use the app for the first time, for
a real-life use case with a real-life data file.
Just watch. Do not say anything. Record every
frustration they encounter in the first ten minutes.
Then, with maniacal focus, eliminate every one of
those frustrations and test again and again until
the first-use experience is completely smooth.
I guarantee this will get you more paid users.- A preferences window for settings, keyboard shortcuts, and file extension options
- A Unique Values feature
- A File Metadata pane to easily set up things like header rows
- The command launcher width changes as the window width is changed.
A few were addressed in version 1:
- Persistent storage of settings set via command
- Headers rows frozen by default
Header columns work the same way as header rows, just vertically. I use consistent verbiage for clarity. If they appeared to do nothing for you, the reason is probably that the number of header columns is 0 by default. I haven't seen any confusion about it since adding the File Metadata pane.
There's a Minimum Number of Table Rows/Columns setting that's set to 50 by default. You can set it as low as 1. There's also a Number of Buffer Rows/Columns that will add rows and columns beyond the data. It's set to 2 by default.
I'll take a good look at scrolling on Mac. I haven't seen problems with my setup, so I'll work to reproduce what others are seeing.
Newlines in values should be explicitly escaped, e.g.
foo,2.0,bar,this\nis\na\ntest,blah