Hello,
at the moment I'm minimalist (in term of skills) vim user, but soon will start working with Django as well as wxpython project and seems Geany has very nice support for both (wx)Python and some specific one for Django.
However, if replacing vim with another editor, I'd like to use it as external editor in my (Claws-mail) mailer. For that purpose I have the following line in my Claws' preferences:
gvim "+set ft=mail" -f %s
which takes advantage of vim's paragraph reformatting option (gq command) so that, for instance the above quoted paragraph:
However, if replacing vim with another editor, I'd like to use it as external editor in my (Claws-mail) mailer. For that purpose I have the following line in my Claws' preferences:
would be reforamtted as follows:
However, if replacing vim with another editor, I'd like to use it as external editor in my (Claws-mail) mailer. For that purpose I have the following line in my Claws' preferences:
which is very handy when dealing with quoted messages.
Afaict, Geany does not have support for 'mail' filetype, but I wonder if there is any interest to support it and/or tweak some of the present format'a support to get the above mentioned enhanced support?
It's nice that Geany has '-i' option which was one of the reasons why I gave up on considering SublimeText2, but having support for mail filetype would be dream-land!
Sincerely, Gour
Le 30/07/2012 17:53, Gour a écrit :
Hello,
Hi Gour,
at the moment I'm minimalist (in term of skills) vim user, but soon will start working with Django as well as wxpython project and seems Geany has very nice support for both (wx)Python and some specific one for Django.
However, if replacing vim with another editor, I'd like to use it as external editor in my (Claws-mail) mailer. For that purpose I have the following line in my Claws' preferences:
gvim "+set ft=mail" -f %s
which takes advantage of vim's paragraph reformatting option (gq command) so that, for instance the above quoted paragraph:
However, if replacing vim with another editor, I'd like to use it as external editor in my (Claws-mail) mailer. For that purpose I have the following line in my Claws' preferences:
would be reforamtted as follows:
However, if replacing vim with another editor, I'd like to use it as external editor in my (Claws-mail) mailer. For that purpose I have the following line in my Claws' preferences:
which is very handy when dealing with quoted messages.
You mean it reflows the paragraph (^J) but keep the ">" at line starts, right? No, Geany doesn't currently know there can be stuff that should be kept when reflowing. However I agree that such a feature, if it can also work with comments and strings, too, would be very handy :)
Afaict, Geany does not have support for 'mail' filetype, but I wonder if there is any interest to support it and/or tweak some of the present format'a support to get the above mentioned enhanced support?
The easiest way to add this would probably be a plugin providing an alternative reflow implementation that takes care of keeping the leading ">". The best implementation would probably be to teach Geany to keep such constructs when reflowing (comments, strings, etc.).
About a mail format, I'd think one of the text formatting filetypes (txt2tags, REsT, Markdown) knowing ">" for quoting would probably be sufficient -- and since they already exists, you wouldn't have to add a new one :)
It's nice that Geany has '-i' option which was one of the reasons why I gave up on considering SublimeText2, but having support for mail filetype would be dream-land!
Hehe, Neverland's so close!
Cheers, Colomban
On Tue, 31 Jul 2012 23:40:10 +0200 Colomban Wendling lists.ban@herbesfolles.org wrote:
You mean it reflows the paragraph (^J) but keep the ">" at line starts, right?
Exactly.
No, Geany doesn't currently know there can be stuff that should be kept when reflowing. However I agree that such a feature, if it can also work with comments and strings, too, would be very handy :)
:-)
The easiest way to add this would probably be a plugin providing an alternative reflow implementation that takes care of keeping the leading ">".
Actually, vim (and Emacs as well, iirc), can reflow paragraph with nested 'quotes', e.g. "> >".
Providing plugin means hacking in C, right?
The best implementation would probably be to teach Geany to keep such constructs when reflowing (comments, strings, etc.).
Yeah, that wouldbe more 'general' solution.
About a mail format, I'd think one of the text formatting filetypes (txt2tags, REsT, Markdown) knowing ">" for quoting would probably be sufficient -- and since they already exists, you wouldn't have to add a new one :)
Hmmm...I'm just not sure (just starting with REsT and forgot about the other two) how they are supposed to handle nested stuff.
Hehe, Neverland's so close!
:-()
Sincerely, Gour
On 1 August 2012 16:04, Gour gour@atmarama.net wrote:
On Tue, 31 Jul 2012 23:40:10 +0200 Colomban Wendling lists.ban@herbesfolles.org wrote:
You mean it reflows the paragraph (^J) but keep the ">" at line starts, right?
Exactly.
No, Geany doesn't currently know there can be stuff that should be kept when reflowing. However I agree that such a feature, if it can also work with comments and strings, too, would be very handy :)
:-)
The easiest way to add this would probably be a plugin providing an alternative reflow implementation that takes care of keeping the leading ">".
Actually, vim (and Emacs as well, iirc), can reflow paragraph with nested 'quotes', e.g. "> >".
Geany isn't a vim or emacs clone, so nobody really cared to read their mail in Geany enough to do it.
Providing plugin means hacking in C, right?
Yep.
The best implementation would probably be to teach Geany to keep such constructs when reflowing (comments, strings, etc.).
Yeah, that wouldbe more 'general' solution.
Would be "nice" but is very language specific, would need language dependent smarts which lives in plugins not in core these days.
About a mail format, I'd think one of the text formatting filetypes (txt2tags, REsT, Markdown) knowing ">" for quoting would probably be sufficient -- and since they already exists, you wouldn't have to add a new one :)
I'd have thought just plain text with the smarty_pants_reflow_plugin would be enough, but I guess markup filetypes might highlight links and things for you.
Hmmm...I'm just not sure (just starting with REsT and forgot about the other two) how they are supposed to handle nested stuff.
Hehe, Neverland's so close!
Yet so far away :)
Cheers Lex
PS in answer to your next, if a (acceptable if not perfect) existing filetype exists a custom filetype is just config file stuff, see the manual, if you want something not in scintilla then its C++ as well.
:-()
Sincerely, Gour
-- While contemplating the objects of the senses, a person develops attachment for them, and from such attachment lust develops, and from lust anger arises.
http://atmarama.net | Hlapicina (Croatia) | GPG: 52B5C810
Geany mailing list Geany@uvena.de https://lists.uvena.de/cgi-bin/mailman/listinfo/geany
On Wed, 1 Aug 2012 17:07:54 +1000 Lex Trotman elextr@gmail.com wrote:
Geany isn't a vim or emacs clone, so nobody really cared to read their mail in Geany enough to do it.
One correction --it is not "their mail", iow. when I use gvim as external editor within Claws-mail, then Claws handles headers and when I invoke 'external editor' with "Edit with external editor", gvim only handles body of the language starting with:
"On Wed, 1 Aug 2012 17:07:54 +1000 Lex Trotman elextr@gmail.com wrote:"
to cite this message.
Considering that we clean our replies before sending them, it means that usually there is only need to handle one or maximum two levels of quotes '>'.
Would be "nice" but is very language specific, would need language dependent smarts which lives in plugins not in core these days.
I see...
I'd have thought just plain text with the smarty_pants_reflow_plugin would be enough, but I guess markup filetypes might highlight links and things for you.
That's not the problem
Yet so far away :)
Huh...
PS in answer to your next, if a (acceptable if not perfect) existing filetype exists a custom filetype is just config file stuff, see the manual,
OK, I'll take a look if something can be cooked.
if you want something not in scintilla then its C++ as well.
He he...C++ is even worse (for me) than C. :-)
Am 01.08.2012 09:07, schrieb Lex Trotman:
On 1 August 2012 16:04, Gour gour@atmarama.net wrote:
On Tue, 31 Jul 2012 23:40:10 +0200 Colomban Wendling lists.ban@herbesfolles.org wrote:
You mean it reflows the paragraph (^J) but keep the ">" at line starts, right?
Exactly.
No, Geany doesn't currently know there can be stuff that should be kept when reflowing. However I agree that such a feature, if it can also work with comments and strings, too, would be very handy :)
:-)
The easiest way to add this would probably be a plugin providing an alternative reflow implementation that takes care of keeping the leading ">".
Actually, vim (and Emacs as well, iirc), can reflow paragraph with nested 'quotes', e.g. "> >".
Geany isn't a vim or emacs clone, so nobody really cared to read their mail in Geany enough to do it.
Providing plugin means hacking in C, right?
Yep.
Can't you code plugins with Vala and Python as well these days?
Best regards.
On 2 August 2012 04:41, Thomas Martitz thomas.martitz@student.htw-berlin.de wrote:
Am 01.08.2012 09:07, schrieb Lex Trotman:
On 1 August 2012 16:04, Gour gour@atmarama.net wrote:
On Tue, 31 Jul 2012 23:40:10 +0200 Colomban Wendling lists.ban@herbesfolles.org wrote:
You mean it reflows the paragraph (^J) but keep the ">" at line starts, right?
Exactly.
No, Geany doesn't currently know there can be stuff that should be kept when reflowing. However I agree that such a feature, if it can also work with comments and strings, too, would be very handy :)
:-)
The easiest way to add this would probably be a plugin providing an alternative reflow implementation that takes care of keeping the leading ">".
Actually, vim (and Emacs as well, iirc), can reflow paragraph with nested 'quotes', e.g. "> >".
Geany isn't a vim or emacs clone, so nobody really cared to read their mail in Geany enough to do it.
Providing plugin means hacking in C, right?
Yep.
Can't you code plugins with Vala and Python as well these days?
Best regards.
Geany mailing list Geany@uvena.de https://lists.uvena.de/cgi-bin/mailman/listinfo/geany
Would it be possible to use the Linux command "fmt" to have the selected portion of the buffer reformatted? Perhaps i might operate only on text prefixed in a pre-determined method - e.g. with "> " or "/*" but it could still be coded so that it was quite generic.
Below is a link to an example of "fmt" used to reflow the text in a C comment block:
http://docstore.mik.ua/orelly/unix3/upt/ch21_04.htm
Regards,
Russell Dickenson (AKA phayz)
On Thu, 2 Aug 2012 11:56:57 +1000 Russell Dickenson russelldickenson@gmail.com wrote:
Would it be possible to use the Linux command "fmt" to have the selected portion of the buffer reformatted? Perhaps i might operate only on text prefixed in a pre-determined method - e.g. with "> " or "/*" but it could still be coded so that it was quite generic.
Interesting idea...but it still means coding in C.
I know that mentioning Vim is probably not too popular here, but considering that Vim is also known as "programmer's editor", it would be handy to have similar feature in Geany as well.
Sincerely, Gour
On 2 August 2012 18:25, Gour gour@atmarama.net wrote:
On Thu, 2 Aug 2012 11:56:57 +1000 Russell Dickenson russelldickenson@gmail.com wrote:
Would it be possible to use the Linux command "fmt" to have the selected portion of the buffer reformatted? Perhaps i might operate only on text prefixed in a pre-determined method - e.g. with "> " or "/*" but it could still be coded so that it was quite generic.
Interesting idea...but it still means coding in C.
I know that mentioning Vim is probably not too popular here, but considering that Vim is also known as "programmer's editor", it would be handy to have similar feature in Geany as well.
Sure, but "somebodys got to do it"(tm). But patches or pull requests are welcome.
Cheers Lex
Sincerely, Gour
-- In the material world, one who is unaffected by whatever good or evil he may obtain, neither praising it nor despising it, is firmly fixed in perfect knowledge.
http://atmarama.net | Hlapicina (Croatia) | GPG: 52B5C810
Geany mailing list Geany@uvena.de https://lists.uvena.de/cgi-bin/mailman/listinfo/geany
On Thu, 2 Aug 2012 19:02:29 +1000 Lex Trotman elextr@gmail.com wrote:
Sure, but "somebodys got to do it"(tm). But patches or pull requests are welcome.
Of course, but it's important if (more) Geany users find this feature as useful addition to the current arsenal. ;)
Sincerely, Gour
Am 02.08.2012 10:25, schrieb Gour:
On Thu, 2 Aug 2012 11:56:57 +1000 Russell Dickenson russelldickenson@gmail.com wrote:
Would it be possible to use the Linux command "fmt" to have the selected portion of the buffer reformatted? Perhaps i might operate only on text prefixed in a pre-determined method - e.g. with "> " or "/*" but it could still be coded so that it was quite generic.
Interesting idea...but it still means coding in C.
You can send selected text to external programs with 'Right click->Format->Send selection to'.
Also, let me repeat my previous statement since it apparently went under.
Can't you code plugins with Vala and Python as well these days?
Best regards
On 2 August 2012 19:30, Thomas Martitz thomas.martitz@student.htw-berlin.de wrote:
Am 02.08.2012 10:25, schrieb Gour:
On Thu, 2 Aug 2012 11:56:57 +1000 Russell Dickenson russelldickenson@gmail.com wrote:
Would it be possible to use the Linux command "fmt" to have the selected portion of the buffer reformatted? Perhaps i might operate only on text prefixed in a pre-determined method - e.g. with "> " or "/*" but it could still be coded so that it was quite generic.
Interesting idea...but it still means coding in C.
You can send selected text to external programs with 'Right click->Format->Send selection to'.
Also, let me repeat my previous statement since it apparently went under.
Can't you code plugins with Vala and Python as well these days?
Hiya Thomas,
True, though both are still experimental. It probably should be Matthew who answers to these since both are still in his github. I don't know the status of the Vala bindings, but IIUC the Python ones work except for keybindings, and that will take some work, either in Geanypy or in Geany itself.
Cheers Lex
Best regards
Geany mailing list Geany@uvena.de https://lists.uvena.de/cgi-bin/mailman/listinfo/geany
On Thu, 2 Aug 2012 19:50:18 +1000 Lex Trotman elextr@gmail.com wrote:
True, though both are still experimental. It probably should be Matthew who answers to these since both are still in his github. I don't know the status of the Vala bindings, but IIUC the Python ones work except for keybindings, and that will take some work, either in Geanypy or in Geany itself.
Now I've found GeanyPy...it's great and it could drastically change Geany's ecosystem!!
Sincerely, Gour
On Thu, 02 Aug 2012 11:30:45 +0200 Thomas Martitz thomas.martitz@student.htw-berlin.de wrote:
You can send selected text to external programs with 'Right click->Format->Send selection to'.
Hmm, it could be a possible workaround if we find appropriate 'external program'.
Also, let me repeat my previous statement since it apparently went under.
Can't you code plugins with Vala and Python as well these days?
I'm not familiar with it, but now I see there is geany-vala-binding...
Sincerely, Gour
On Tue, 31 Jul 2012 23:40:10 +0200 Colomban Wendling lists.ban@herbesfolles.org wrote:
About a mail format, I'd think one of the text formatting filetypes (txt2tags, REsT, Markdown) knowing ">" for quoting would probably be sufficient -- and since they already exists, you wouldn't have to add a new one :)
Forgot to ask how it's done in Geany? (vim just provides mail.vim syntax file and that's all.)
Sincerely, Gour