Dear list,
I was thinking that it may be very usefull to have the undo history saved between sessions...
For example: I open a file, make a change, save and close it. The change didn't work and I have to undo that change. Unless I saved a previous version, I can't undo that change.
-or-
I'm really hacking at some files and I must stop to return to it an other day. By closing Geany I'll save all open files to a 'session', but when reopening that 'session' all undo history is gone... I'd like to return to it and continue with the files as if it were a minute ago.
I know this will create some overhead and I thus suggest that saving the undo history will only be done for all items in the 'recent documents' and the open tabs. Once a file is purged from the 'recent files' list and isn't opened in a tab, the history gets deleted.
A popular multi-track audio recording studio called Ardour has added such a feature to their upcoming release (2.0) and I think it makes a real nice feature...
How do guys you think about this?
-H-
Hello. Currently geany keeps the changes when you keep the file open after saving it. I think this is enough.
If you really need these kind of feature why don't you try a version control system like svn ?
Cheers, Jean-Philippe.
Harold Aling a écrit :
Dear list,
I was thinking that it may be very usefull to have the undo history saved between sessions...
For example: I open a file, make a change, save and close it. The change didn't work and I have to undo that change. Unless I saved a previous version, I can't undo that change.
-or-
I'm really hacking at some files and I must stop to return to it an other day. By closing Geany I'll save all open files to a 'session', but when reopening that 'session' all undo history is gone... I'd like to return to it and continue with the files as if it were a minute ago.
I know this will create some overhead and I thus suggest that saving the undo history will only be done for all items in the 'recent documents' and the open tabs. Once a file is purged from the 'recent files' list and isn't opened in a tab, the history gets deleted.
A popular multi-track audio recording studio called Ardour has added such a feature to their upcoming release (2.0) and I think it makes a real nice feature...
How do guys you think about this?
-H-
Geany mailing list Geany@uvena.de http://uvena.de/cgi-bin/mailman/listinfo/geany
Jean-Philippe wrote:
Hello. Currently geany keeps the changes when you keep the file open after saving it. I think this is enough.
If you really need these kind of feature why don't you try a version control system like svn ?
Cheers, Jean-Philippe.
SVN is very useful in projects, but a bit clumsy with configuration files, etc.
Another real-life 'persistant history' example: When restoring a session in Firefox, all the tabs are restored, including their history. Closing a tab in Firefox and undoing that action not only reopens the closed tab, but also restores it's navigation history...
It seems that there is a reasonable demand for such a feature in other programs. Hopefully I'm not alone in wishing for such an extension for Geany: "true session save/restore possibility"...
-H-
Harold Aling a écrit :
Dear list,
I was thinking that it may be very usefull to have the undo history saved between sessions...
For example: I open a file, make a change, save and close it. The change didn't work and I have to undo that change. Unless I saved a previous version, I can't undo that change.
-or-
I'm really hacking at some files and I must stop to return to it an other day. By closing Geany I'll save all open files to a 'session', but when reopening that 'session' all undo history is gone... I'd like to return to it and continue with the files as if it were a minute ago.
I know this will create some overhead and I thus suggest that saving the undo history will only be done for all items in the 'recent documents' and the open tabs. Once a file is purged from the 'recent files' list and isn't opened in a tab, the history gets deleted.
A popular multi-track audio recording studio called Ardour has added such a feature to their upcoming release (2.0) and I think it makes a real nice feature...
How do guys you think about this?
-H-
Geany mailing list Geany@uvena.de http://uvena.de/cgi-bin/mailman/listinfo/geany
Geany mailing list Geany@uvena.de http://uvena.de/cgi-bin/mailman/listinfo/geany
On 04/27/2007 11:19:36 AM, Harold Aling wrote:
Jean-Philippe wrote:
Hello. Currently geany keeps the changes when you keep the file open after saving it. I think this is enough.
If you really need these kind of feature why don't you try a version control system like svn ?
Cheers, Jean-Philippe.
SVN is very useful in projects, but a bit clumsy with configuration files, etc.
Another real-life 'persistant history' example: When restoring a session in Firefox, all the tabs are restored, including their history. Closing a tab in Firefox and undoing that action not only reopens the closed tab, but also restores it's navigation history...
It seems that there is a reasonable demand for such a feature in other programs. Hopefully I'm not alone in wishing for such an extension for Geany: "true session save/restore possibility"...
I think it's an interesting idea, but I don't think it belongs in the core of Geany. Saving the history to a session file might require some changes to Scintilla, but [in theory] there could be a plugin that keeps documents open when the tabs are closed, and reattaches them when reopening the matching file (as long as Geany isn't closed). It would bulk up the memory usage though.
Regards, Nick
Nick Treleaven wrote:
On 04/27/2007 11:19:36 AM, Harold Aling wrote:
Jean-Philippe wrote:
Hello. Currently geany keeps the changes when you keep the file open after saving it. I think this is enough.
If you really need these kind of feature why don't you try a version control system like svn ?
Cheers, Jean-Philippe.
SVN is very useful in projects, but a bit clumsy with configuration files, etc.
Another real-life 'persistant history' example: When restoring a session in Firefox, all the tabs are restored, including their history. Closing a tab in Firefox and undoing that action not only reopens the closed tab, but also restores it's navigation history...
It seems that there is a reasonable demand for such a feature in other programs. Hopefully I'm not alone in wishing for such an extension for Geany: "true session save/restore possibility"...
I think it's an interesting idea, but I don't think it belongs in the core of Geany. Saving the history to a session file might require some changes to Scintilla, but [in theory] there could be a plugin that keeps documents open when the tabs are closed, and reattaches them when reopening the matching file (as long as Geany isn't closed). It would bulk up the memory usage though.
Saving history to disk in a sort of cache file will reduce memory usage. And this feature will be enabled/disabled in Geany's option of course...
If Geany, X or Windows crashes, you would still have all documents including their undo history...
-H-
Regards, Nick _______________________________________________ Geany mailing list Geany@uvena.de http://uvena.de/cgi-bin/mailman/listinfo/geany
On Fri, 27 Apr 2007 11:45:24 +0100, Nick Treleaven nick.treleaven@btinternet.com wrote:
On 04/27/2007 11:19:36 AM, Harold Aling wrote:
Jean-Philippe wrote:
Hello. Currently geany keeps the changes when you keep the file open after saving it. I think this is enough.
If you really need these kind of feature why don't you try a version control system like svn ?
Cheers, Jean-Philippe.
SVN is very useful in projects, but a bit clumsy with configuration files, etc.
Another real-life 'persistant history' example: When restoring a session in Firefox, all the tabs are restored, including their history. Closing a tab in Firefox and undoing that action not only reopens the closed tab, but also restores it's navigation history...
It seems that there is a reasonable demand for such a feature in other programs. Hopefully I'm not alone in wishing for such an extension for Geany: "true session save/restore possibility"...
I think it's an interesting idea, but I don't think it belongs in the core of Geany. Saving the history to a session file might require
Yes, if this will come it should be a plugin. I really don't want to add such a feature to Geany itself. I think the comparison with Ardour which edits audio tracks doesn't really fit. Because it is a difference whether you edit audio files (some sort of binary files) or you edit plain text files. For plain text files different version control systems exist and they are there for just this reason.
And where is the problem with e.g. subversion and configuration files? I have a complete /etc directory under version control with SVN on a server and it justs works fine.
Regards, Enrico
-- Get my GPG key from http://www.uvena.de/pub.key
On Пятніца 27 Красавік 2007 19:40, Enrico Tröger wrote:
And where is the problem with e.g. subversion and configuration files? I have a complete /etc directory under version control with SVN on a server and it justs works fine.
One thing that always annoy me with subversion, when I search some text I get double result with files in ".svn" directory. Now I am happy with git. Geany gently give me terminal to run it from.
p.s Queston about VTE. Can I setup geany to give VTE focus when I move mouse to it instead of clicking? I write terminal command to edited file quite often.
Best regards, Yura Semashko
On Fri, 27 Apr 2007 22:46:15 +0300, Yura Semashko yurand2@gmail.com wrote:
On Пятніца 27 Красавік 2007 19:40, Enrico Tröger wrote:
And where is the problem with e.g. subversion and configuration files? I have a complete /etc directory under version control with SVN on a server and it justs works fine.
One thing that always annoy me with subversion, when I search some text I get double result with files in ".svn" directory. Now I am happy with git. Geany gently give me terminal to run it from.
p.s Queston about VTE. Can I setup geany to give VTE focus when I move mouse to it instead of clicking? I write terminal command to edited file quite often.
I'm not sure perhaps there is some API in GTK to move the focus by moving the mouse into a widget. If so, I probably will add it. You know the focus switching shortcuts? (F4 to get focus in VTE, F2 to get it back to the editor)
Regards, Enrico
-- Get my GPG key from http://www.uvena.de/pub.key
Hello everybody. A few days ago I discovered medit[1], a gtk2 editor which is not as powerful as geany but has some nice features (including python scripting).
One of his feature is a file selector[2] which allows us to browse the filesystem directly within the editor. Could it be possible to add a similar feature on geany? It could be placed on a tab near the open files and selector tabs.
Thanks, Jean-Philippe.
[1] http://mooedit.sourceforge.net/ [2] http://mooedit.sourceforge.net/img/medit.png
On Fri, 27 Apr 2007 18:35:04 +0200, Jean-Philippe skateinmars@skateinmars.net wrote:
Hello everybody. A few days ago I discovered medit[1], a gtk2 editor which is not as powerful as geany but has some nice features (including python scripting).
One of his feature is a file selector[2] which allows us to browse the filesystem directly within the editor. Could it be possible to add a similar feature on geany? It could be placed on a tab near the open files and selector tabs.
This feature was already requested several times. If anyone wants to write a patch, feel welcome to do it. Sorry, I won't add it by myself.
Regards, Enrico
-- Get my GPG key from http://www.uvena.de/pub.key
On 4/27/07, Enrico Tröger enrico.troeger@uvena.de wrote:
On Fri, 27 Apr 2007 18:35:04 +0200, Jean-Philippe skateinmars@skateinmars.net wrote:
Hello everybody. A few days ago I discovered medit[1], a gtk2 editor which is not as powerful as geany but has some nice features (including python scripting).
One of his feature is a file selector[2] which allows us to browse the filesystem directly within the editor. Could it be possible to add a similar feature on geany? It could be placed on a tab near the open files and selector tabs.
This feature was already requested several times. If anyone wants to write a patch, feel welcome to do it. Sorry, I won't add it by myself.
Just a workaround I find very useful in situations like this (I use it in both Geany and GVim). I usually keep a Thunar window opened, vertically maximized and narrow it a lot, presenting files as a list. That way I can put it left or right and launch my files (which will always load in new tabs in Geany.... it works nice) :)
Regards, Enrico
-- Get my GPG key from http://www.uvena.de/pub.key
Geany mailing list Geany@uvena.de http://uvena.de/cgi-bin/mailman/listinfo/geany
Thanks for answering. I guess I'll just have to find someone willing to implement this :)
(Thanks Alexandre for the tip, I'm already acting like this but I think an embedded file selector would be faster to use.)
Alexandre Moreira a écrit :
On 4/27/07, Enrico Tröger enrico.troeger@uvena.de wrote:
On Fri, 27 Apr 2007 18:35:04 +0200, Jean-Philippe skateinmars@skateinmars.net wrote:
Hello everybody. A few days ago I discovered medit[1], a gtk2 editor which is not as powerful as geany but has some nice features (including python scripting).
One of his feature is a file selector[2] which allows us to browse the filesystem directly within the editor. Could it be possible to add a similar feature on geany? It could be placed on a tab near the open files and selector tabs.
This feature was already requested several times. If anyone wants to write a patch, feel welcome to do it. Sorry, I won't add it by myself.
Just a workaround I find very useful in situations like this (I use it in both Geany and GVim). I usually keep a Thunar window opened, vertically maximized and narrow it a lot, presenting files as a list. That way I can put it left or right and launch my files (which will always load in new tabs in Geany.... it works nice) :)
Regards, Enrico
-- Get my GPG key from http://www.uvena.de/pub.key
On 4/27/07, Alexandre Moreira alexandream@gmail.com wrote:
Just a workaround I find very useful in situations like this (I use it in both Geany and GVim). I usually keep a Thunar window opened, vertically maximized and narrow it a lot, presenting files as a list. That way I can put it left or right and launch my files (which will always load in new tabs in Geany.... it works nice) :)
Never heard of Thunar. Thanks for mentioning it Alexandre! Looks good.
I'm running Debian with IceWM, and just installed Thunar. It says it's the file manager for Xfce, but it installed fine, and I can run it from IceWM. As a prereq, it installed xfce4-panel, but it doesn't seem to be running (which is fine by me).
It's a very enticing idea to use Thunar with Geany. I gave it a try. First thing I did was right-click on a script to edit, and do: Open With --> Open with other application. I clicked the flippy-triangle for "use a custom command" and typed: geany %f
To see what %f mean, you have to go to Edit --> Configure custom actions and hit the "plus" button.
So, for that script, I double-clicked it, and it showed up in a new tab in Geany. Great. Trouble is, the next file -- with the same filename extension -- didn't. Instead, it tried to run. Seems like it wants to run .pl scripts in my ~/bin directory... but others it will just open with Geany by default (weird...).
So, although using Thunar with Geany looks very promising, I have two questions. Does anyone happen to know:
1. Is there any way to tell Thunar to *never* execute files?
2. To configure Thunar to know what to do, it seems as if you have to go through each filetype (filename extension) and tell it to use Geany for each one? Or is there some way to do it wholesale? I guess that's not such a big deal though -- only have to do it once...
Anyway, I should probably ask those on the Thunar list, but it sounds like there's some experience with it here, and it could make a very nice combo with Geany.
This might be something to mention in the manual (.../share/doc/geany/html/ch03s03.html#general_instance), as an example of using an external file manager.
Thanks, ---John
On 4/27/07, John Gabriele jmg3000@gmail.com wrote:
On 4/27/07, Alexandre Moreira alexandream@gmail.com wrote:
Just a workaround I find very useful in situations like this (I use it in both Geany and GVim). I usually keep a Thunar window opened, vertically maximized and narrow it a lot, presenting files as a list. That way I can put it left or right and launch my files (which will always load in new tabs in Geany.... it works nice) :)
Never heard of Thunar. Thanks for mentioning it Alexandre! Looks good.
I'm running Debian with IceWM, and just installed Thunar. It says it's the file manager for Xfce, but it installed fine, and I can run it from IceWM. As a prereq, it installed xfce4-panel, but it doesn't seem to be running (which is fine by me).
It's a very enticing idea to use Thunar with Geany. I gave it a try. First thing I did was right-click on a script to edit, and do: Open With --> Open with other application. I clicked the flippy-triangle for "use a custom command" and typed: geany %f
To see what %f mean, you have to go to Edit --> Configure custom actions and hit the "plus" button.
So, for that script, I double-clicked it, and it showed up in a new tab in Geany. Great. Trouble is, the next file -- with the same filename extension -- didn't. Instead, it tried to run. Seems like it wants to run .pl scripts in my ~/bin directory... but others it will just open with Geany by default (weird...).
So, although using Thunar with Geany looks very promising, I have two questions. Does anyone happen to know:
Is there any way to tell Thunar to *never* execute files?
To configure Thunar to know what to do, it seems as if you have to
go through each filetype (filename extension) and tell it to use Geany for each one? Or is there some way to do it wholesale? I guess that's not such a big deal though -- only have to do it once...
The thing with mime handling and Thunar is that it uses the .desktop files and mime database. Probably what is happening is you have some of the .pl with the executable bit set and others without. I work mostly with C code so I can't really guarantee that
Knowing what to do is a matter of setting your mime database (it is shared between KDE, Gnome and Xfce.. but I don't think it is accessible through IceWM) to have the files opened with Geany for launching.
Have a look at the shared mime standard so you can have an Idea where you go to change this behavior. And if that doesn't work I guess you will have to ask the guys on Thunar List, since I never had this problem (none of my files is executable anyways) before.
Regards, Alexandre Moreira.
Anyway, I should probably ask those on the Thunar list, but it sounds like there's some experience with it here, and it could make a very nice combo with Geany.
This might be something to mention in the manual (.../share/doc/geany/html/ch03s03.html#general_instance), as an example of using an external file manager.
Thanks, ---John _______________________________________________ Geany mailing list Geany@uvena.de http://uvena.de/cgi-bin/mailman/listinfo/geany