Hi.
This is now implemented in SVN as a 'Tabs and Spaces' indent type preference and per-document setting, plus a Tab Width pref (the old pref is now called Indent Width). The main editing actions should work as expected in the new mode, but some of Geany's code insertion features (e.g. default file templates) might still use tabs. Feel free to file bugs/requests to improve things further (or post here).
How can I set "display-tab-width" to 8 spaces and "indent-width" to 4 spaces using current editor preferences dialog? I couldn't do that using latest SVN version of geany.
Still there is no distinguish between display tabs width and single indent width. At least I still can't set up the required configuration....
On Wed, 13 Aug 2008 14:25:44 +0500 "Walery Studennikov" despairr@gmail.com wrote:
Hi.
This is now implemented in SVN as a 'Tabs and Spaces' indent type preference and per-document setting, plus a Tab Width pref (the old pref is now called Indent Width). The main editing actions should work as expected in the new mode, but some of Geany's code insertion features (e.g. default file templates) might still use tabs. Feel free to file bugs/requests to improve things further (or post here).
How can I set "display-tab-width" to 8 spaces and "indent-width" to 4 spaces using current editor preferences dialog? I couldn't do that using latest SVN version of geany.
Are you sure you're running latest SVN? (svn up & rebuild, install).
In the Edit->Preferences dialog, on the Editor tab: Under Indentation first set Width for "indent-width". Then set Type to 'Tabs and Spaces', and below that set 'Hard tab width' for "display-tab-width".
Note: 'Hard tab width' was renamed from just 'Tab width' on Monday for clarity.
Still there is no distinguish between display tabs width and single indent width.
There is when using the 'Tabs and Spaces' Type.
Regards, Nick
2008/8/13 Nick Treleaven nick.treleaven@btinternet.com:
On Wed, 13 Aug 2008 14:25:44 +0500 "Walery Studennikov" despairr@gmail.com wrote:
Hi.
This is now implemented in SVN as a 'Tabs and Spaces' indent type preference and per-document setting, plus a Tab Width pref (the old pref is now called Indent Width). The main editing actions should work as expected in the new mode, but some of Geany's code insertion features (e.g. default file templates) might still use tabs. Feel free to file bugs/requests to improve things further (or post here).
How can I set "display-tab-width" to 8 spaces and "indent-width" to 4 spaces using current editor preferences dialog? I couldn't do that using latest SVN version of geany.
Are you sure you're running latest SVN? (svn up & rebuild, install).
Yes, the latest SVN.
In the Edit->Preferences dialog, on the Editor tab: Under Indentation first set Width for "indent-width". Then set Type to 'Tabs and Spaces', and below that set 'Hard tab width' for "display-tab-width".
Well, I set: 'Width' -> 4, 'Type' -> 'Tabs and Spaces', ''Hard tab width' -> 8,
But when I press 'Tab' key, cursor indents to 8 characters. If I press 'Backspace' after that, it removes 4 characters.
So, I still can't set different display and indent tab widths :(
On Thu, 4 Sep 2008 16:44:11 +0500 "Walery Studennikov" despairr@gmail.com wrote:
In the Edit->Preferences dialog, on the Editor tab: Under Indentation first set Width for "indent-width". Then set Type to 'Tabs and Spaces', and below that set 'Hard tab width' for "display-tab-width".
Well, I set: 'Width' -> 4, 'Type' -> 'Tabs and Spaces', ''Hard tab width' -> 8,
But when I press 'Tab' key, cursor indents to 8 characters. If I press 'Backspace' after that, it removes 4 characters.
So, I still can't set different display and indent tab widths :(
Does the status bar say T/S for tabs & spaces, rather than TAB or SP?
Also check the indent/unindent keyboard shortcuts - by default these are ctrl-i, ctrl-u. Only with the hidden pref use_tab_to_indent set can you also indent with Tab.
The way it works for me is that indenting/unindenting changes the indent by 4 spaces, but the total indent is made up out of leading tabs plus some spaces (once the indent is big enough), the tabs being equivalent to 8 spaces.
E.g. press indent 3 times - equivalent of 12 spaces: <TAB><SP><SP><SP><SP>
Unindent twice - so total is now 4: <SP><SP><SP><SP>
Regards, Nick
2008/9/9 Nick Treleaven nick.treleaven@btinternet.com:
On Thu, 4 Sep 2008 16:44:11 +0500 "Walery Studennikov" despairr@gmail.com wrote:
In the Edit->Preferences dialog, on the Editor tab: Under Indentation first set Width for "indent-width". Then set Type to 'Tabs and Spaces', and below that set 'Hard tab width' for "display-tab-width".
Well, I set: 'Width' -> 4, 'Type' -> 'Tabs and Spaces', ''Hard tab width' -> 8,
But when I press 'Tab' key, cursor indents to 8 characters. If I press 'Backspace' after that, it removes 4 characters.
So, I still can't set different display and indent tab widths :(
Does the status bar say T/S for tabs & spaces, rather than TAB or SP?
Yes, there is "T/S" in the status bar.
Also check the indent/unindent keyboard shortcuts - by default these are ctrl-i, ctrl-u. Only with the hidden pref use_tab_to_indent set can you also indent with Tab.
Yes, it works now! Only with this hidden pref use_tab_to_indent set.
I would never guess this if you didn't said ;)
Can we make this preference not-so-hidden?
On Tue, 16 Sep 2008 16:24:35 +0500 "Walery Studennikov" despairr@gmail.com wrote:
Also check the indent/unindent keyboard shortcuts - by default these are ctrl-i, ctrl-u. Only with the hidden pref use_tab_to_indent set can you also indent with Tab.
Yes, it works now! Only with this hidden pref use_tab_to_indent set.
I would never guess this if you didn't said ;)
Can we make this preference not-so-hidden?
I'll add a prefs dialog setting for it.
Also, I think it probably should be on by default rather than off (tab/shift-tab for indentation is a common keybinding for editors).
Regards, Nick
On Wed, 17 Sep 2008 18:13:57 +0100 Nick Treleaven nick.treleaven@btinternet.com wrote:
Only with this hidden pref use_tab_to_indent set.
I would never guess this if you didn't said ;)
Can we make this preference not-so-hidden?
I'll add a prefs dialog setting for it.
Also, I think it probably should be on by default rather than off (tab/shift-tab for indentation is a common keybinding for editors).
Now done in SVN; editor features tab, 'Tab key indents'.
Now it's on by default it should be less confusing for anyone not using the Tabs indent type.
Regards, Nick