Steve Greenbaum | 5 Jul 18:02 2012
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 18:22 2012
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 23:59 2012
Picon

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 17:58 2012

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 21:08 2012
Picon

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 21:58 2012
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
Tim Rowe | 12 Jul 13:55 2012
Picon

Can't get Tomboy 1.10.2 to work on Windows 7

When I try to start Tomboy it immediately comes up with a error:
"Tomboy notes has stopped working. Windows is checking for a solution
to the problem". It doesn't find one, though. Some others seem  to
have Tomboy working on Windows 7 -- how do you do it?

--

-- 
Tim Rowe
Aaron Borden | 12 Jul 17:16 2012

Re: Can't get Tomboy 1.10.2 to work on Windows 7

On Thu, 2012-07-12 at 12:55 +0100, Tim Rowe wrote:
> When I try to start Tomboy it immediately comes up with a error:
> "Tomboy notes has stopped working. Windows is checking for a solution
> to the problem". It doesn't find one, though. Some others seem  to
> have Tomboy working on Windows 7 -- how do you do it?
> 

Can you start tomboy from command line and paste the output?

> tomboy.exe --debug
Tim Rowe | 12 Jul 17:38 2012
Picon

Re: Can't get Tomboy 1.10.2 to work on Windows 7

On 12 July 2012 16:16, Aaron Borden <adborden@...> wrote:
> On Thu, 2012-07-12 at 12:55 +0100, Tim Rowe wrote:
>> When I try to start Tomboy it immediately comes up with a error:
>> "Tomboy notes has stopped working. Windows is checking for a solution
>> to the problem". It doesn't find one, though. Some others seem  to
>> have Tomboy working on Windows 7 -- how do you do it?
>>
>
> Can you start tomboy from command line and paste the output?
>
>> tomboy.exe --debug

I get:
[C:\Program Files (x86)\Tomboy][DEBUG 16:21:58.374] Unable to load
icon 'note-new'.

Unhandled Exception: System.TypeInitializationException: The type
initializer for 'Tomboy.NoteManager' threw an exception. --->
System.DllNotFoundException: Unable to load DLL 'intl': The specified
module could not be found. (Exception from HRESULT: 0x8007007E)
   at Mono.Unix.Catalog.gettext(IntPtr instring)
   at Mono.Unix.Catalog.GetString(String s)
   at Tomboy.NoteManager..cctor() in
C:\Projects\tomboy-gnome\Tomboy\NoteManager.cs:line 21
   --- End of inner exception stack trace ---
   at Tomboy.NoteManager..ctor(String directory)
   at Tomboy.Tomboy.Main(String[] args) in
C:\Projects\tomboy-gnome\Tomboy\Tomboy.cs:line 89

I note that there is a file "new_note.ico" in the directory, but not
"note-new*". But renaming "new_note.ico" to "note-new.ico" doesn't
change anything.

--

-- 
Tim Rowe
Jared Jennings | 12 Jul 17:48 2012
Picon

Re: Can't get Tomboy 1.10.2 to work on Windows 7

On a side "note": Aaron why is my Project path being stored in the final distribution?


-Jared


On Thu, Jul 12, 2012 at 10:38 AM, Tim Rowe <digitig-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
C:\Projects\tomboy-gnome\Tomboy\NoteManager.cs:line 21

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

Gmane