diff --git a/app/main.js b/app/main.js index bb818bc..30b22fd 100644 --- a/app/main.js +++ b/app/main.js @@ -277,7 +277,8 @@ let openFilePath = null // callback for app.makeSingleInstance: const initApp = firstInstance => (instanceArgv, workingDirectory) => { try { - const argv = instanceArgv.slice(1) + let argv = instanceArgv.slice(1) + let awaitingOpenEvent = false // macOS OpenWith peculiarity // Using context menu on Windows results in invoking .exe with // just the filename as argument, no directory passed in and // no shell wrapper, hence the check for argv.length > 1 here. @@ -291,6 +292,13 @@ const initApp = firstInstance => (instanceArgv, workingDirectory) => { // npm / electron start -- passes '.' as first argument argv.unshift('--executed-from') } + // macOS insanity: If we're started via Open With..., we get invoked + // with -psn_0_XXXXX argument; let's just kill it: + if (process.platform === 'darwin' && argv && (argv.length > 0) && + argv[0].startsWith('-psn_')) { + argv = argv.slice(1) + awaitingOpenEvent = true + } const options = commandLineArgs(optionDefinitions, {argv}) let quickExit = false if (options.help) { @@ -360,24 +368,18 @@ const initApp = firstInstance => (instanceArgv, workingDirectory) => { if (targetPath) { appWindow.create(targetPath) } + if (showQuickStart) { + quickStart.showQuickStart() + } if (openFilePath) { const openMsg = `pid ${process.pid}: Got open-file for ${openFilePath}` log.warn(openMsg) appWindow.create(openFilePath) // dialog.showMessageBox({ message: openMsg }) - if (showQuickStart) { - quickStart.showQuickStart() - } } else { - if (!targetPath) { + if (!targetPath && !awaitingOpenEvent) { app.focus() - /* - * We used to just do: - * appWindow.openDialog() - * but showing quickStart seems more useful for no-arg - * startup path: - */ - quickStart.showQuickStart() + appWindow.openDialog() } } isReady = true diff --git a/package.json b/package.json index 49756f4..57eb249 100644 --- a/package.json +++ b/package.json @@ -91,7 +91,7 @@ "build-assets": "npm run build:html && npm run build:icon", "build-dev": "npm run build-assets && webpack --env=dev", "build-prod": "npm run build-assets && webpack --env=prod", - "build-site": "mkdirp doc && cp -r src/doc/site/src/* docs", + "build-site": "mkdirp docs && cp -r src/doc/site/src/* docs", "clean": "rm -rf build/*", "csvimport": "electron build/csvimport.bundle.js", "dist": "build", diff --git a/src/doc/screenshots/tad-linux.png b/src/doc/screenshots/tad-linux.png new file mode 100644 index 0000000..ebed2e7 Binary files /dev/null and b/src/doc/screenshots/tad-linux.png differ diff --git a/src/doc/screenshots/tad-windows.png b/src/doc/screenshots/tad-windows.png new file mode 100644 index 0000000..258012c Binary files /dev/null and b/src/doc/screenshots/tad-windows.png differ diff --git a/src/doc/site/src/index.html b/src/doc/site/src/index.html index 4ae890f..d9432bb 100755 --- a/src/doc/site/src/index.html +++ b/src/doc/site/src/index.html @@ -90,28 +90,30 @@

A better way to view & analyze data

News

-

Tad 0.8.3 - April 17, 2017

+

Tad 0.8.4 - May 29, 2017

- An initial release of Tad for macOS is now available for download and installation. + A packaged installer for Tad is available for macOS, Linux and Windows.

- This release supports basic viewing and analysis of CSV files but there are some important limitations and caveats: -

-

This is an initial release, so there is a reasonable chance you'll encounter bugs, UI annoyances, and corner cases. Please report them via Help...Send Feedback. + Tad is still new and under development so there is a reasonable chance you'll encounter bugs, UI annoyances, and corner cases while using Tad. Please report them via Help...Send Feedback.

- If you're comfortable with the above, please... + If you're comfortable with that caveat, pick your platform and install:

+ href="https://github.com/antonycourtney/tad/releases/download/v0.8.4/tad-0.8.4.dmg"> Download for Mac + + + Download for Linux + + + + Download for Windows +

@@ -151,6 +153,25 @@

Contact

Release Notes

+
+

Tad 0.8.4 - May 29, 2017

+

+

New Features
+
    +
  • Rudimentary filters - simple list of predicates combined with AND or OR +
  • Footer showing row count information: Total Rows, Filtered Rows, Current View +
  • Cross-Platform: First release for macOS, Linux and Windows +
  • Sample CSV file included with distribution, linked in Quick Start Guide. +
+
Bug Fixes
+
    +
  • Pivoting on columns containing backslashes now works. +
  • Improve error reporting of SQLITE errors when creating table during import. +
  • Allow filenames that are all digits. +
  • Correct handling of duplicate column identifiers that differ in upper/lower case. +
  • Replace auto-create of symbolic link in /usr/local/binwith self-serve instructions in quick start guide. +
+

Tad 0.8.3 - April 17, 2017