--
Ticket URL: <www.midnight-commander.org/ticket/1489>
Midnight Commander <www.midnight-commander.org>
Midnight Development Center
* cc: dbo...@yahoo.com (added)
--
Ticket URL: <www.midnight-commander.org/ticket/1489#comment:1>
Comment(by angel_il):
>1. Usually, I just need to quickly indent a block of code, and going into
Options to turn Persistent selections off takes a lot of keypresses.
just turn Persistent selections off :) and newer turn on :)
--
Ticket URL: <www.midnight-commander.org/ticket/1489#comment:2>
Comment(by angel_il):
>2. Backspace/Del with non-persistent selections is superfluous, because
there is F8 for that. With persistent selections.
its (BS/Del - delete selected text) the actual standard for many editors.
--
Ticket URL: <www.midnight-commander.org/ticket/1489#comment:3>
Comment(by angel_il):
>3. Indenting should behave EXACTLY like Tab/Backspace will behave when
used on a single, non-selected line.
but Tab/Backspace on a single, non-selected line work as tab / backspace
tab - insert <tab>, backspace - delete 1 char.
Or what do you mean?
--
Ticket URL: <www.midnight-commander.org/ticket/1489#comment:4>
Comment(by angel_il):
>b. BackSpace will unindent the block.
will be after #212 just re-define BackSpace
--
Ticket URL: <www.midnight-commander.org/ticket/1489#comment:5>
Comment(by angel_il):
>c. Ctrl-Tab will indent the block
we can not use Ctrl-Tab, many terminals not sent esc-seq on this hotkey.
--
Ticket URL: <www.midnight-commander.org/ticket/1489#comment:6>
Comment(by dborca):
Replying to [comment:2 angel_il]:
> >1. Usually, I just need to quickly indent a block of code, and going
into Options to turn Persistent selections off takes a lot of keypresses.
>
> just turn Persistent selections off :) and newer turn on :)
And then do what with them? Besides indenting, they're useless.
--
Ticket URL: <www.midnight-commander.org/ticket/1489#comment:7>
Comment(by dborca):
Replying to [comment:3 angel_il]:
> >2. Backspace/Del with non-persistent selections is superfluous, because
there is F8 for that. With persistent selections.
>
> its (BS/Del - delete selected text) the actual standard for many
editors.
Well, for mcedit, F8 is the de facto standard, for many, many, many years
now. Users of mc won't complain about that.
About BackSpace, you are right. I was under the wrong impression. Sorry.
But let's take an example: Visual Studio 2008... no wait! that's evil...
SciTe/Scintilla uses Alt-Backspace for block unindenting. Hmm... that key
is taken for Kill Back Word.
--
Ticket URL: <www.midnight-commander.org/ticket/1489#comment:8>
Comment(by dborca):
Replying to [comment:4 angel_il]:
> >3. Indenting should behave EXACTLY like Tab/Backspace will behave when
used on a single, non-selected line.
>
> but Tab/Backspace on a single, non-selected line work as tab / backspace
> tab - insert <tab>, backspace - delete 1 char.
>
> Or what do you mean?
Not if you have the default configuration:
[x] Fake half tabs
[ ] Backspace through tabs
[ ] Fill tabs with spaces
Tab spacing: 8
Step0:
text
Step1: hit Tab
text
Step2: hit Tab
<------>text
Step3: hit Tab
<------> text
Step4: hit Backspace
<------>text
Step5: hit Backspace
text
I think you get the idea.
--
Ticket URL: <www.midnight-commander.org/ticket/1489#comment:9>
Comment(by dborca):
Replying to [comment:6 angel_il]:
> >c. Ctrl-Tab will indent the block
> we can not use Ctrl-Tab, many terminals not sent esc-seq on this hotkey.
Ok, then we have to find another suggestive hotkey. They become
increasincly scarce :(
Ctrl-Tab/Ctrl-I and Shift-Tab is replaced by src/key.c#correct_key_code()
to KEY_BTAB
Does Ctrl-I/Shift-Tab work on the aforementioned terminals?
PS: sorry about the previous post. I should've used monospace.
--
Ticket URL: <www.midnight-commander.org/ticket/1489#comment:10>
* milestone: 4.7.0-pre2 => 4.7.0-pre3
--
Ticket URL: <www.midnight-commander.org/ticket/1489#comment:11>
* milestone: 4.7.0-pre3 => 4.7.0-pre4
--
Ticket URL: <www.midnight-commander.org/ticket/1489#comment:12>
* owner: => angel_il
* status: new => accepted
* severity: no branch => on review
Comment:
branch: 1489_block_indent (parent: master)
changeset: 3de45b9b85a43215d5331276fa5e4628d9427009
--
Ticket URL: <www.midnight-commander.org/ticket/1489#comment:13>
Comment(by angel_il):
changeset: 18a183fbd41d428ad7eb6d9492c525288925053b (force update)
--
Ticket URL: <www.midnight-commander.org/ticket/1489#comment:14>
* votes: => slavazanko
--
Ticket URL: <www.midnight-commander.org/ticket/1489#comment:15>
Comment(by angel_il):
118ee1487a7cb01c35a83255f7ce46f07050e27c (force update)
--
Ticket URL: <www.midnight-commander.org/ticket/1489#comment:16>
* votes: slavazanko => slavazanko andrew_b
* severity: on review => approved
--
Ticket URL: <www.midnight-commander.org/ticket/1489#comment:17>
* status: accepted => testing
* votes: slavazanko andrew_b => commited-master
* resolution: => fixed
* severity: approved => merged
Comment:
Fixed: 359c9406d10f7298318090f834a573d0a5f0e29a
--
Ticket URL: <www.midnight-commander.org/ticket/1489#comment:18>
* status: testing => closed
--
Ticket URL: <www.midnight-commander.org/ticket/1489#comment:19>
Comment(by zero):
[http://DECORATION-STAIR.INFO decoration]
Changed 1 year ago by admin
[http://SUPER-SALE-BATHTUB.INFO bathtub]
Changed 1 year ago by admin
[http://CHEAP-SOLAR-SYSTEM.INFO solar system]
Changed 1 year ago by admin
[http://CHEAP-STAIR-PARTS.INFO stair parts]
Changed 1 year ago by admin
[http://CHINA-SOLAR-SUPPLY.INFO solar supply]
Changed 1 year ago by admin
--
Ticket URL: <www.midnight-commander.org/ticket/1489#comment:20>