Hi!
Recently I tried to change some python library and I have encountered really big problem - those guys used spaces instead of tabs (I don't want any flame war, so let's not go into this issue). Is there any possibility, that geany could display tabs, even though there spaces and edit it using tabs altohugh they would be saved as spaces? And yeah, I remember that someone has to write this code and it won't happen in day :-) but if you could add it to some wishlist, then it would be cool :-)
Am Mittwoch, den 27.05.2009, 11:36 +0200 schrieb Filip Gruszczyński:
but if you could add it to some wishlist, then it would be cool :-)
Short remembrance: https://sourceforge.net/tracker/?group_id=153444&atid=787794 (This is the sourceforge.net feature tracker for geany)
Regards, Dominic
On Wed, 27 May 2009 11:36:49 +0200, Filip wrote:
Hi!
Same to you :).
Sorry for the late reply, I somehow missed that mail :(.
Recently I tried to change some python library and I have encountered really big problem - those guys used spaces instead of tabs (I don't want any flame war, so let's not go into this issue). Is there any possibility, that geany could display tabs, even though there spaces and edit it using tabs altohugh they would be saved as spaces? And
Hmm, not sure about the displaying part. Do you have the "Show Whitespace" option enabled and are referring to that?
About editing, Geany should detect if in the opened file spaces are used for indentation and then automatically insert spaces instead of tabs when pressing TAB or indent code in another way (Ctrl-I or whatever). You can check this in the statusbar, the fifth field says "TAB", "SP" or "T/S" which indicates the used indentation of the current file. Additionally you can change or enforce the used indentation for the current document in the menu: Document->Indent Type->... And of course, you have a whole bunch of more settings in the preferences dialog but note that these apply for all files.
Not sure whether this really answers your question, though.
Regards, Enrico
About editing, Geany should detect if in the opened file spaces are used for indentation and then automatically insert spaces instead of tabs when pressing TAB or indent code in another way (Ctrl-I or whatever). You can check this in the statusbar, the fifth field says "TAB", "SP" or "T/S" which indicates the used indentation of the
First tabs/spaces detection: it doesn't seem to work. I opened first one of my files - it detected tabs correctly. Then I opened some other Python code, which used spaces - status bar kept saying it's tabs and used tabs, instead of spaces. I had to change it explicitly.
But this completely different what I imagine: when I open someone's code, I wouldn't like to care, if it's tabs or spaces. I hate using spaces, because it makes me type a lot more. So instead, I would like the editor to hide it from me. I would see tabs, although underneath the code would use spaces. Is such a thing possible?
On Mon, 22 Jun 2009 23:13:40 +0200 Filip Gruszczyński gruszczy@gmail.com wrote:
First tabs/spaces detection: it doesn't seem to work. I opened first one of my files - it detected tabs correctly. Then I opened some other Python code, which used spaces - status bar kept saying it's tabs and used tabs, instead of spaces. I had to change it explicitly.
Well, assuming it wasn't a different project (projects have their own indent settings), that file must have confused Geany's detection by having some lines that start with tabs. If you provide the code it might be clearer why.
But this completely different what I imagine: when I open someone's code, I wouldn't like to care, if it's tabs or spaces. I hate using spaces, because it makes me type a lot more. So instead, I would like the editor to hide it from me. I would see tabs, although underneath the code would use spaces. Is such a thing possible?
No, I think this would be too messy to implement. But we could make the Spaces indent mode a bit easier to use, perhaps a pref to make the <- -> arrow keys jump through the number of spaces of the indent size.
Regards, Nick
Well, assuming it wasn't a different project (projects have their own indent settings), that file must have confused Geany's detection by having some lines that start with tabs. If you provide the code it might be clearer why.
It was Python 3.0 stdlib. I doubt, if there were any tabs, because this would confuse the intepreter quite a bit ;-)
No, I think this would be too messy to implement. But we could make the Spaces indent mode a bit easier to use, perhaps a pref to make the <- -> arrow keys jump through the number of spaces of the indent size.
I would rather have backspace deleting a tab length of spaces. Together with tabs changing to spaces, it would save me a lot of trouble.
On Tue, 23 Jun 2009 17:12:12 +0200 Filip Gruszczyński gruszczy@gmail.com wrote:
Well, assuming it wasn't a different project (projects have their own indent settings), that file must have confused Geany's detection by having some lines that start with tabs. If you provide the code it might be clearer why.
It was Python 3.0 stdlib. I doubt, if there were any tabs, because this would confuse the intepreter quite a bit ;-)
I don't have it here. Which source file?
No, I think this would be too messy to implement. But we could make the Spaces indent mode a bit easier to use, perhaps a pref to make the <- -> arrow keys jump through the number of spaces of the indent size.
I would rather have backspace deleting a tab length of spaces.
Geany already does this in Spaces or Tabs + Spaces indent modes.
Regards, Nick