Steve Greenbaum | 5 Jul 2012 18:02
Picon

Open Arbitrary Note in Tomboy From File System

Hello --

I want to be able to open a note (.note file) in Tomboy by double-clicking on it in the file system.  Using Windows 7, I am indexing the Tomboy notes folder.  When the search results are returned I want to click on the note and see the content in a Tomboy screen.  When I associate the .note file extension with Tomboy.exe it always opens the Tomboy search screen, not the specific note selected.   I'm using v1.8.3.

Thanks

_______________________________________________
Tomboy-list mailing list
Tomboy-list@...
http://lists.beatniksoftware.com/listinfo.cgi/tomboy-list-beatniksoftware.com
PrivateNotes | 5 Jul 2012 18:22
Picon

Re: Open Arbitrary Note in Tomboy From File System

Not sure if this is directly supported by tomboy, but tomboy supports the command line argument:
note://tomboy/NOTE_ID

so you could put the following code in a .bat file:

set tomboypath="C:\Program Files\Tomboy\Tomboy.exe"
set noteid=%~n1
start %tomboypath% "note://tomboy/%noteid%"

Make sure you modify the tomboypath if tomboy is installed somewhere else.
Then associate .note files with this script (instead of tomboy), this will then pass the note-id (the filename) to tomboy which will open it.

Hope this helps.

Cheers,
 Paul

On 05.07.2012 18:02, Steve Greenbaum wrote:
Hello --

I want to be able to open a note (.note file) in Tomboy by double-clicking on it in the file system.  Using Windows 7, I am indexing the Tomboy notes folder.  When the search results are returned I want to click on the note and see the content in a Tomboy screen.  When I associate the .note file extension with Tomboy.exe it always opens the Tomboy search screen, not the specific note selected.   I'm using v1.8.3.

Thanks

_______________________________________________ Tomboy-list mailing list Tomboy-list-0fE9KPoRgkiLrwD38QH1XXHrszOJ0dCBAL8bYrjMMd8@public.gmane.org http://lists.beatniksoftware.com/listinfo.cgi/tomboy-list-beatniksoftware.com


_______________________________________________
Tomboy-list mailing list
Tomboy-list@...
http://lists.beatniksoftware.com/listinfo.cgi/tomboy-list-beatniksoftware.com
Jared Jennings | 5 Jul 2012 23:59
Picon
Gravatar

Re: Open Arbitrary Note in Tomboy From File System

I ran a quick testing and Tomboy doesn't support this.

We don't actually check this type of parameter :(

If it DID work  you could right click a note, select open and then browse and select the tomboy.exe making sure that the "always open with this program" was checked. Then the associations would be made automatically for you.

Feel free to open an enhancement request in bugzilla.gnome.org as I think it's a great idea.

-Jared


On Thu, Jul 5, 2012 at 12:22 PM, PrivateNotes <privatenoteshgb-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
Not sure if this is directly supported by tomboy, but tomboy supports the command line argument:
note://tomboy/NOTE_ID

so you could put the following code in a .bat file:

set tomboypath="C:\Program Files\Tomboy\Tomboy.exe"
set noteid=%~n1
start %tomboypath% "note://tomboy/%noteid%"

Make sure you modify the tomboypath if tomboy is installed somewhere else.
Then associate .note files with this script (instead of tomboy), this will then pass the note-id (the filename) to tomboy which will open it.

Hope this helps.

Cheers,
 Paul


On 05.07.2012 18:02, Steve Greenbaum wrote:
Hello --

I want to be able to open a note (.note file) in Tomboy by double-clicking on it in the file system.  Using Windows 7, I am indexing the Tomboy notes folder.  When the search results are returned I want to click on the note and see the content in a Tomboy screen.  When I associate the .note file extension with Tomboy.exe it always opens the Tomboy search screen, not the specific note selected.   I'm using v1.8.3.

Thanks

_______________________________________________ Tomboy-list mailing list Tomboy-list-0fE9KPoRgkiLrwD38QH1XXHrszOJ0dCBAL8bYrjMMd8@public.gmane.org http://lists.beatniksoftware.com/listinfo.cgi/tomboy-list-beatniksoftware.com



_______________________________________________
Tomboy-list mailing list
Tomboy-list <at> lists.beatniksoftware.com
http://lists.beatniksoftware.com/listinfo.cgi/tomboy-list-beatniksoftware.com


_______________________________________________
Tomboy-list mailing list
Tomboy-list@...
http://lists.beatniksoftware.com/listinfo.cgi/tomboy-list-beatniksoftware.com
Aaron Borden | 6 Jul 2012 17:58
Gravatar

Re: Open Arbitrary Note in Tomboy From File System

On Thu, 2012-07-05 at 17:59 -0400, Jared Jennings wrote:
> I ran a quick testing and Tomboy doesn't support this.
> We don't actually check this type of parameter :(

No? Here's the help doc, sounds like a bug with the --open-note switch.

> adborden <at> pangur ~/src/tomboy $ Tomboy/tomboy --help
> Tomboy: A simple, easy to use desktop note-taking application.
> Copyright © 2004-2007 Alex Graveley
> <alex <at> beatniksoftware.com>
> 
> Copyright © 2004-2011 Others
> Usage:
>   --version			Print version information.
>   --help			Print this usage message.
>   --note-path [path]		Load/store note data in this directory.
>   --search [text]		Open the search all notes window with the search text.
>   --new-note			Create and display a new note.
>   --new-note [title]		Create and display a new note, with a title.
>   --open-note [title/url]	Display the existing note matching title.
>   --start-here			Display the 'Start Here' note.
>   --highlight-search [text]	Search and highlight text in the opened note.

_______________________________________________
Tomboy-list mailing list
Tomboy-list <at> lists.beatniksoftware.com
http://lists.beatniksoftware.com/listinfo.cgi/tomboy-list-beatniksoftware.com
Jared Jennings | 6 Jul 2012 21:08
Picon
Gravatar

Re: Open Arbitrary Note in Tomboy From File System

Aaron,

You are correct. I was confused with a bug in Linux.

I just tested this and it does work, but it does open Two Windows of the same Note (Weird)

After using the steps I mentioned in the previous e-mail, run regedit and go to this key
HKEY_CURRENT_USER\Software\Classes\note_auto_file\shell\open\command

Change the value to be this (adding the --open-note) section
"C:\Program Files (x86)\Tomboy\Tomboy.exe" "--open-note" "%1"


-Jared


On Fri, Jul 6, 2012 at 11:58 AM, Aaron Borden <adborden-EMRzualFZlQ@public.gmane.org> wrote:
On Thu, 2012-07-05 at 17:59 -0400, Jared Jennings wrote:
> I ran a quick testing and Tomboy doesn't support this.
> We don't actually check this type of parameter :(

No? Here's the help doc, sounds like a bug with the --open-note switch.

> adborden <at> pangur ~/src/tomboy $ Tomboy/tomboy --help
> Tomboy: A simple, easy to use desktop note-taking application.
> Copyright © 2004-2007 Alex Graveley
> <alex <at> beatniksoftware.com>
>
> Copyright © 2004-2011 Others
> Usage:
>   --version                   Print version information.
>   --help                      Print this usage message.
>   --note-path [path]          Load/store note data in this directory.
>   --search [text]             Open the search all notes window with the search text.
>   --new-note                  Create and display a new note.
>   --new-note [title]          Create and display a new note, with a title.
>   --open-note [title/url]     Display the existing note matching title.
>   --start-here                        Display the 'Start Here' note.
>   --highlight-search [text]   Search and highlight text in the opened note.

_______________________________________________
Tomboy-list mailing list
Tomboy-list@...
http://lists.beatniksoftware.com/listinfo.cgi/tomboy-list-beatniksoftware.com
Steve Greenbaum | 6 Jul 2012 21:58
Picon

Re: Open Arbitrary Note in Tomboy From File System

Thank you all for your responses. 

I'd be really happy to see this functionality since it seems like it would greatly improve searchability of notes in conjunction with Windows 7 search.  I would be able to more effectively create compound search criteria since Windows 7 has a search syntax for doing this. 

In an archived posting I saw reference to the --open-note syntax, but it implied that it only worked with the note Title, not the note name.  It looks like you are saying the command is able to accept the full path to the file, great news. 

--open-note [title/url]     Display the existing note matching title

I created an item in bugzilla for this request. https://bugzilla.gnome.org/show_bug.cgi?id=679489

On Fri, Jul 6, 2012 at 3:08 PM, Jared Jennings <jaredljennings <at> gmail.com> wrote:
Aaron,
You are correct. I was confused with a bug in Linux.

I just tested this and it does work, but it does open Two Windows of the same Note (Weird)

After using the steps I mentioned in the previous e-mail, run regedit and go to this key
HKEY_CURRENT_USER\Software\Classes\note_auto_file\shell\open\command

Change the value to be this (adding the --open-note) section
"C:\Program Files (x86)\Tomboy\Tomboy.exe" "--open-note" "%1"


-Jared



On Fri, Jul 6, 2012 at 11:58 AM, Aaron Borden <adborden-EMRzualFZlQ@public.gmane.org> wrote:
On Thu, 2012-07-05 at 17:59 -0400, Jared Jennings wrote:
> I ran a quick testing and Tomboy doesn't support this.
> We don't actually check this type of parameter :(

No? Here's the help doc, sounds like a bug with the --open-note switch.

> adborden <at> pangur ~/src/tomboy $ Tomboy/tomboy --help
> Tomboy: A simple, easy to use desktop note-taking application.
> Copyright © 2004-2007 Alex Graveley
> <alex <at> beatniksoftware.com>
>
> Copyright © 2004-2011 Others
> Usage:
>   --version                   Print version information.
>   --help                      Print this usage message.
>   --note-path [path]          Load/store note data in this directory.
>   --search [text]             Open the search all notes window with the search text.
>   --new-note                  Create and display a new note.
>   --new-note [title]          Create and display a new note, with a title.
>   --open-note [title/url]     Display the existing note matching title.
>   --start-here                        Display the 'Start Here' note.
>   --highlight-search [text]   Search and highlight text in the opened note.


_______________________________________________
Tomboy-list mailing list
Tomboy-list <at> lists.beatniksoftware.com
http://lists.beatniksoftware.com/listinfo.cgi/tomboy-list-beatniksoftware.com


_______________________________________________
Tomboy-list mailing list
Tomboy-list@...
http://lists.beatniksoftware.com/listinfo.cgi/tomboy-list-beatniksoftware.com

Gmane