Registered Member
|
Hi.
Tab key have two meanings. First is changing focused control. Second is add tabular space to text. My idea is to made tab only switching widget and space+tab putting tabular key to multiline text editor.
Lachu, proud to be a member of KDE forums since 2008-Nov.
|
Registered Member
|
|
Registered Member
|
First, I don't think this is a very good idea anyway - most people are fully able to distinguish between when tab means increase indentation (in a text editor) and when tab means move to next field (anywhere else). Just because one action has two different meanings depending on the context doesn't mean it is a bad idea - I can click-and-drag a window to move it, or I can click-and-drag an icon to move/copy/insert path/whatever, or I can click-and-drag over some text to select it, or I can click-and-drag the selected text to move it.
Second trying to push for Space-Tab as the "shortcut" to add a tab character is a really bad idea as that would involve either turning space into a modifier (e.g. alt key) or otherwise modify the behavior of the space key to detect if it is being used in conjunction with the tab key vs. inserting a space character, and would only lead to confusing people. Third, you are going to confuse everybody who is already used to the current behavior - muscle-memory for a very basic task, and they are not going to even try to relearn the new behavior since every other text editor and word processor does it that way.
airdrik, proud to be a member of KDE forums since 2008-Dec.
|
Global Moderator
|
Er.... No?
I use the tab key about 1000 times a day for indenting. Always having to press Space+Tab would be horrible. Apart from that, I don't think you can use the space bar as a modifier key, only Ctrl, Meta, Alt and Shift... Regards, Sven
I'm working on the KDevelop IDE.
|
Registered Member
|
I don't know how to switching control from multi line edit control(like in Kate) without using mouse ;-( .
Lachu, proud to be a member of KDE forums since 2008-Nov.
|
Registered Member
|
@Lachu: maybe you should explain what you are trying to achieve in Kate and someone could tell you how to do it.
It's time to prod some serious buttock!
|
Registered Member
|
I'm programming in python. I wonder how to insert tabulation instead of spaces.
I know, that Python developers and book author about Python suggest to using four spaces, but I prefer tabulation. Also - I would like to switch onto search bar or above bar with keyboard.
Lachu, proud to be a member of KDE forums since 2008-Nov.
|
Registered Member
|
Tabulation are also necessary in well formatted C/C++ code.
Lachu, proud to be a member of KDE forums since 2008-Nov.
|
Registered Member
|
In that case you want to go into the options for your editor and configure it to use tabs instead of spaces for indentation, then hitting tab will insert a tab instead of N (usually 4) spaces.
In Kwrite, go to Settings -> configure editor -> Editing, or Kate: Configure Kate -> Editor Component -> Editing. Under the General tab the first section is for configuring tabs vs. spaces and the size of a tab character. The Indentation tab also has more options for indentation style. (btw, I agree on the use of tabs in python - it makes more sense to use tabs at 1 tab per block, rather than 4 spaces per block, but that is another (un)holy war altogether). To answer your previous query about switching from e.g. the editor widget in kate to other components of the editor using the keyboard, you will probably have to set up keyboard shortcuts to activate the different components and use those for switching out of the editor widget.
airdrik, proud to be a member of KDE forums since 2008-Dec.
|
Registered users: Bing [Bot], Evergrowing, Google [Bot]