bobthecow / coda-cli

Makes Panic's Coda a first-class *nix citizen
http://justinhileman.info/coda-cli/
MIT License
53 stars 4 forks source link

--new-window has timing issues #4

Open fuzzy76 opened 13 years ago

fuzzy76 commented 13 years ago

I open a file with coda -n test.txt from another desktop than the one running Coda (and Coda is fixed to its own desktop, so all Coda windows open there). What happens is that Coda opens a new window, but the document is opened in the "old" window. If I open the file from the same desktop as Coda, it works fine.

bobthecow commented 13 years ago

I can't seem to reproduce this. Here's what I tried:

  1. Open Coda on desktop 1.
  2. Right click dock icon, Options > Assign to > This desktop
  3. Switch to another desktop.
  4. Open an existing file:

    coda -n README.markdown
  5. Open a new file:

    coda -n /tmp/this-is-new.txt
  6. Open a temporary file:

    echo 'test' | coda -n

All of the above seem to work just fine (with the exception of the two-tab issue on the last one — that's another issue)

kitajchuk commented 11 years ago

--new-window doesn't work at all for me. Not sure why, but the edit I made in this commit fixes for me but is not an elegant solution overall:

https://github.com/kitajchuk/coda-cli/commit/61213fa93a84441b52612de3aed36ccae6c1da4e

Have you had or seen this issue before?

lelandcope commented 9 years ago

I have an issue with the new window option when windows are in fullscreen. It seems to always open in my last window instead of creating a new window and opening it in that one.

bobthecow commented 9 years ago

@lelandcope It looks like your current issue is a result of a crash in Coda's scripting handler. Can you confirm this for me by opening Console.app and searching for NSScriptCommand?