~/.pd/recentfiles.conf would always only contain recentfiles configuration.
ok I have a couple more questions:
now I have a ~/.pd/recentfiles.conf that is parsed and all filenames are added to a new "Open Recent" submenu when pd launches instead of putting them directly in the File menu (I removed one of the bottom separators in there). (that looks nice!) so the new layout of the file menu would be: [New] [Open] [Open Recent >] [---] [Save] [Save As] [---] [Message] [Print] [---] [Close] [Quit]
what do you think of this idea ?
then I wonder when it would be better to write this file. I'd like to do it only when closing pd but I'm not sure..
also, I created a new file and put all this recentfiles stuff in it, tcl/pd_guiprefs.tcl and I didn't find out where I should add it so it ends up in tcl/pkgIndex.tcl. any hints ?
cheers, _y
I got it working on linux =) here is a small video showing the behavior:
http://www.yvanvolochine.com/tmp/pd_recentfiles.ogg
as Iohannes suggested I use ~/.pd/recentfiles.conf I'll try to make it for osx/win in the next days if I get my hands on a win machine
comments are welcome!
cheers, _y
On Mar 16, 2011, at 12:02 AM, yv wrote:
~/.pd/recentfiles.conf would always only contain recentfiles configuration.
ok I have a couple more questions:
now I have a ~/.pd/recentfiles.conf that is parsed and all filenames are added to a new "Open Recent" submenu when pd launches instead of putting them directly in the File menu (I removed one of the bottom separators in there). (that looks nice!) so the new layout of the file menu would be: [New] [Open] [Open Recent >] [---] [Save] [Save As] [---] [Message] [Print] [---] [Close] [Quit]
what do you think of this idea ?
then I wonder when it would be better to write this file. I'd like to do it only when closing pd but I'm not sure..
also, I created a new file and put all this recentfiles stuff in it, tcl/pd_guiprefs.tcl and I didn't find out where I should add it so it ends up in tcl/pkgIndex.tcl. any hints ?
cheers, _y
The way that the recent files are currently written to the File menu are carefully tailored to the way its normally done on the native platform. GNOME and Windows do it by putting them directly inline on the File menu, Mac OS X does it on the Open Recent menu. I think KDE does a "Open Recent" menu like Mac OS X, but GNOME is quite a bit more prevalent from what I've seen.
I think this should stay like it is by default, but you can do anything you want in a GUI plugin.
.hc
----------------------------------------------------------------------------
"We have nothing to fear from love and commitment." - New York Senator Diane Savino, trying to convince the NY Senate to pass a gay marriage bill
On 03/16/2011 06:28 PM, Hans-Christoph Steiner wrote:
The way that the recent files are currently written to the File menu are carefully tailored to the way its normally done on the native platform. GNOME and Windows do it by putting them directly inline on the File menu, Mac OS X does it on the Open Recent menu. I think KDE does a "Open Recent" menu like Mac OS X, but GNOME is quite a bit more prevalent from what I've seen.
I think this should stay like it is by default, but you can do anything you want in a GUI plugin.
alright I 'll think about it and write a gui-plugin instead. I don't have neither gnome nor kde but I think inlining 10 recent items in the file menu is a bit too much =)
cheers, _y
On Mar 16, 2011, at 1:39 PM, yvan volochine wrote:
On 03/16/2011 06:28 PM, Hans-Christoph Steiner wrote:
The way that the recent files are currently written to the File menu are carefully tailored to the way its normally done on the native platform. GNOME and Windows do it by putting them directly inline on the File menu, Mac OS X does it on the Open Recent menu. I think KDE does a "Open Recent" menu like Mac OS X, but GNOME is quite a bit more prevalent from what I've seen.
I think this should stay like it is by default, but you can do anything you want in a GUI plugin.
alright I 'll think about it and write a gui-plugin instead. I don't have neither gnome nor kde but I think inlining 10 recent items in the file menu is a bit too much =)
cheers, _y
It seems that almost everything that you are doing should go into the core. I am saying just the "Open Recent" versus File-inline issue might be best resolved using GUI plugins. If there was overwhelming support for using "Open Recent" by default on GNU/Linux, I could be fine with that too.
.hc
----------------------------------------------------------------------------
I have the audacity to believe that peoples everywhere can have three meals a day for their bodies, education and culture for their minds, and dignity, equality and freedom for their spirits. - Martin Luther King, Jr.
On 03/16/2011 08:18 PM, Hans-Christoph Steiner wrote:
alright I 'll think about it and write a gui-plugin instead. I don't have neither gnome nor kde but I think inlining 10 recent items in the file menu is a bit too much =)
It seems that almost everything that you are doing should go into the core.
indeed
I am saying just the "Open Recent" versus File-inline issue might
be best resolved using GUI plugins. If there was overwhelming support for using "Open Recent" by default on GNU/Linux, I could be fine with that too.
I don't mind having an OS specific behavior but I think that if we inline recent files in Menu.file we should restrain it to 5 items (imagine 10 recent files list in there...).
so my proposal is: - linux/win keep the recentfiles list inlined in Menu.file (5 items max, no clear button, oh well..) and osx has a Recent (or "Open recent") submenu with 5 (or more? dunno the mac-way-of-life for that) recent items in it and a "clear" option (well, they paid for it =)
does that make sense ?
cheers, _y
On Mar 16, 2011, at 7:55 PM, yvan volochine wrote:
On 03/16/2011 08:18 PM, Hans-Christoph Steiner wrote:
alright I 'll think about it and write a gui-plugin instead. I don't have neither gnome nor kde but I think inlining 10 recent items in the file menu is a bit too much =)
It seems that almost everything that you are doing should go into the core.
indeed
I am saying just the "Open Recent" versus File-inline issue might
be best resolved using GUI plugins. If there was overwhelming support for using "Open Recent" by default on GNU/Linux, I could be fine with that too.
I don't mind having an OS specific behavior but I think that if we inline recent files in Menu.file we should restrain it to 5 items (imagine 10 recent files list in there...).
so my proposal is:
- linux/win keep the recentfiles list inlined in Menu.file (5 items
max, no clear button, oh well..) and osx has a Recent (or "Open recent") submenu with 5 (or more? dunno the mac-way-of-life for that) recent items in it and a "clear" option (well, they paid for it =)
does that make sense ?
cheers, _y
Sure, works for me.
.hc
----------------------------------------------------------------------------
"[W]e have invented the technology to eliminate scarcity, but we are deliberately throwing it away to benefit those who profit from scarcity." -John Gilmore
On 03/16/2011 05:02 AM, yv wrote:
also, I created a new file and put all this recentfiles stuff in it, tcl/pd_guiprefs.tcl and I didn't find out where I should add it so it ends up in tcl/pkgIndex.tcl. any hints ?
hiho
I still don't really know what to do with tcl/pkgIndex.tcl I ran tcl/pkg_mkIndex.tcl and now my new file 'pd_guiprefs.tcl' is in there but I'm not sure I had to do this.
also I edited po/Makefile.am and tcl/Makefile.am and added pd_guiprefs.tcl there but I'm not a Makefile guru so any advices on this is welcome.
I finally have the recentfiles thing working on both osx and linux =) I'll try to test it on win32 and pd-extended next w-end.
what's your rules about patches ? should I post my patch on sf.net ?
cheers, _y