ttscoff / nv

MultiMarkdown version of Notational Velocity with Markdown editing features and preview
http://brettterpstra.com/projects/nvalt
BSD 3-Clause "New" or "Revised" License
1.77k stars 198 forks source link

nv:// URL scheme fails to make window visible after search #124

Closed christos closed 11 years ago

christos commented 11 years ago

OSX 10.8.2 on 11" MacBook Air (1.8GHz i7) NVAlt 2.2b101

What is says in the subject.

I tried both with dock hidden and without. The window only comes to the front if it is already open or if the application is not running.

If it is running (no quit on close) and the window is closed, it will perform the search but the window won't appear automatically

elasticthreads commented 11 years ago

try the "nvalt://" url scheme

christos commented 11 years ago

No change with nvalt://

Tried it from Safari, Terminal (open nvalt://wadustext), and LaunchBar

elasticthreads commented 11 years ago

that's not how the url scheme works: try: the spec is this: nvalt://make/?title=URI-escaped-title&html=URI-escaped-HTML-data&tags=URI-escaped-tag-string

christos commented 11 years ago

Ah! I see...

Although I can't find the documentation for it, I can get it to work as expected using nvalt://find/searchstring

Thanks!

Having said that, there is another glitch I've come across (but not nearly as big).

Type a search and then close the window, leaving the app in the background.

If I try to create a new item using the nvalt://make/ scheme, the item is created but not displayed. Instead I get the window to come to front with the previous search. Is this intended? Shall I open an issue??!

elasticthreads commented 11 years ago

we do need proper documentation on the url scheme. For now you can look at Notational Velocity's documentation. It's basically the same EXCEPT you need to change the protocol from "nv://" to "nvalt://"

the NV documentation is here: https://github.com/scrod/nv/wiki/nv:---URL-Specification