This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Space Tab

-47

Votes
2
49
Tags: gui gui gui
(comma "," separated)
Lachu
Registered Member
Posts
864
Karma
1
OS

Space Tab

Sat Mar 12, 2011 3:52 pm
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.
User avatar
VaterGarp
Registered Member
Posts
39
Karma
0
OS

Space Tab

Sun Mar 13, 2011 10:14 pm
Why? Where do you need that?
airdrik
Registered Member
Posts
1854
Karma
5
OS

Space Tab

Mon Mar 14, 2011 5:09 pm
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.
User avatar
scummos
Global Moderator
Posts
1175
Karma
7
OS

Space Tab

Thu Mar 17, 2011 1:27 pm
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.
Lachu
Registered Member
Posts
864
Karma
1
OS

Space Tab

Fri Apr 15, 2011 7:02 am
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.
User avatar
hook
Registered Member
Posts
205
Karma
0
OS

Space Tab

Tue Apr 26, 2011 4:17 pm
@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! ;)
Lachu
Registered Member
Posts
864
Karma
1
OS

Space Tab

Fri Apr 29, 2011 1:57 pm
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.
Lachu
Registered Member
Posts
864
Karma
1
OS

Space Tab

Fri Apr 29, 2011 1:57 pm
Tabulation are also necessary in well formatted C/C++ code.


Lachu, proud to be a member of KDE forums since 2008-Nov.
airdrik
Registered Member
Posts
1854
Karma
5
OS

Space Tab

Fri Apr 29, 2011 4:57 pm
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.


Bookmarks



Who is online

Registered users: Bing [Bot], Evergrowing, Google [Bot]