Bug 65434 - FORMATTING: hitting TAB when multiple lines are selected, should change indent of all selected lines
Summary: FORMATTING: hitting TAB when multiple lines are selected, should change inden...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Paragraph
  Show dependency treegraph
 
Reported: 2013-06-05 22:00 UTC by Samuel Mehrbrodt (allotropia)
Modified: 2021-05-30 11:39 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Samuel Mehrbrodt (allotropia) 2013-06-05 22:00:08 UTC
How to reproduce:
1. Create two lines with text in Writer
2. Select them
3. Press Tabulator

Expected behavior:
A tab should be added to all selected lines

Actual behavior:
The selected text is deleted and one tab is added.


This enhancement would be helpful when working with source code in Writer.
Comment 1 m_a_riosv 2013-06-05 22:31:21 UTC
Hi Samuel,
LibreOffice Writer, I think, it is not design for deal with source code. Paragraph oriented, do not seems easy find this enhancement implemented.

A couple of extensions can help you:
http://extensions.libreoffice.org/extension-center/code-colorizer-formatter
http://extensions.libreoffice.org/extension-center/coooder

Maybe other open source editors can help better your purpose, a little search on the net.

Please if you find a good way for your work, close this bug.
Comment 2 Cor Nouws 2013-06-06 07:22:12 UTC
I agree with mariosv.
Hope you can make a good choise for a real source code editor, Samuel. Cheers - Cor
Comment 3 Samuel Mehrbrodt (allotropia) 2013-06-06 08:11:23 UTC
I'm not looking for a source code editor. I create documents where source code is embedded and for that reason I need this feature.

The mentioned extensions don't indent the code, they just put some styles on it.
Comment 4 Cor Nouws 2013-06-06 09:17:08 UTC
(In reply to comment #3)
> I'm not looking for a source code editor. I create documents where source
> code is embedded and for that reason I need this feature.

Sorry that I did not get that right !

Wouldn't it be an idea to use a paragraph style with indent, font, color etc? That is how I solve these things.
Comment 5 Cor Nouws 2013-06-06 09:42:42 UTC
(In reply to comment #0)
> Expected behavior:
> A tab should be added to all selected lines

Not sure if *expected* is right, but - true is true - when you select more lines with bullets/ numbering, the behaviour is as requested..

Set the version to 330 - it's obviously inherrited from OOo.
Comment 6 Cor Nouws 2014-11-04 20:59:13 UTC
Still a valid request (though IMO not so useful ;))
Comment 7 jddcef 2015-10-12 20:36:14 UTC
I would like to upvote this issue. It's a major issue when working on any document. For example, when I have a numbered paragraph that is indented and I want each line to match the indentation of the first line. I can't go and tab each line, that's frustating.

I was helping a friend on his brochure handout for mass, and I ran into this issue and was embarrassed by it, because I was the one who installed LibreOffice on his computer.
Comment 8 UltraBurstXD 2021-02-27 13:30:25 UTC
(In reply to jddcef from comment #7)
> I would like to upvote this issue. It's a major issue when working on any
> document. For example, when I have a numbered paragraph that is indented and
> I want each line to match the indentation of the first line. I can't go and
> tab each line, that's frustating.
> 
> I was helping a friend on his brochure handout for mass, and I ran into this
> issue and was embarrassed by it, because I was the one who installed
> LibreOffice on his computer.

Me either... It's need not only for formatting some codes, but others stuff too.
Comment 9 Mike Kaganski 2021-03-29 04:32:14 UTC
This would be a feature that would introduce a *direct formatting* to the selection, when one presses a normal character button. The other suites that are not focusing on proper use of styles, may be OK with introducing direct formatting easily; but LibreOffice should not introduce direct formatting when user does normal things. We should not create tools that will force users who use styles consistently think twice "will this not direct-format my text" before pressing any key.

This could be a non-default option, if introduced at all.
Comment 10 Mike Kaganski 2021-03-29 05:25:04 UTC
(In reply to jddcef from comment #7)
> I would like to upvote this issue. It's a major issue when working on any
> document. For example, when I have a numbered paragraph that is indented and
> I want each line to match the indentation of the first line. I can't go and
> tab each line, that's frustating.

This is using a wrong tool for a task. I suppose that most (all?) users who might want this (mis)feature likely simply do not know how to do that properly, using list and paragraph properties and styles.

For cases of inserting source code, using a dedicated "source code" paragraph style with offsets.

For cases of lists, "Position" tab of Bullets and Numbering dialog allows one to adjust the proper position of first and following lines.

My take is WONTFIX.
Comment 11 jddcef 2021-03-29 05:42:39 UTC
> This would be a feature that would introduce a *direct formatting* to the
> selection, when one presses a normal character button.

Well, if someone wants to delete all their work, they can press backspace or delete. It's way more crazy to have everything overwritten by pressing TAB rather than 
"oh shame something has changed, I wanted to delete it but instead I indented it".

I don't feel charitable in my response, so I'm going to say again, don't let technical developers make usability decisions on this product. Use latex if they are obsessed about document production. This product can't even reach the number of pages to publish a book without crashing, so this idea of perfection is way off at this stage.
Cater for user first, then the rare power user as an "option".


This is why Libreoffice still remains a WONTUSE product ten years on.
Comment 12 Mike Kaganski 2021-03-29 06:16:18 UTC
(In reply to jddcef from comment #11)
> Well, if someone wants to delete all their work, they can press backspace or
> delete.

When you select anything, and press a key that inserts a character "a", you expect the text to be overwritten by the new character "a".

> It's way more crazy to have everything overwritten by pressing TAB
> rather than 
> "oh shame something has changed, I wanted to delete it but instead I
> indented it".

It's strange to have one character "a" overwrite selection, and another "Tab" to do strange things instead.
Comment 13 Mike Kaganski 2021-03-29 06:45:40 UTC
(In reply to jddcef from comment #11)
> don't let
> technical developers make usability decisions on this product. Use latex if
> they are obsessed about document production. This product can't even reach
> the number of pages to publish a book without crashing, so this idea of
> perfection is way off at this stage.
> Cater for user first, then the rare power user as an "option".

I was a power user many years before becoming a LO dev. I used to help tens of other users at my previous workplace; they kept struggling and wasting hundreds oh hours (combined) to make their documents look normal - initially on MSO, then later on OOo and LibreOffice, so that was same on any office suite. Being blissfully ignorant, they considered their "use" of the tool normal, and being "efficient" when they started to create their "documents", they didn't realize that their following problems were caused by that initial misuse of the tool. And only after I repeated the show of how initial small effort on learning the tool paid later, many times, they realized the importance of that.

But please don't let the literates to make decisions if you need to learn reading and writing properly. That study is definitely badly affects your life and skills, and hinders your lifer progress.
Comment 14 UltraBurstXD 2021-05-30 11:39:35 UTC
I really hope someone reconsider this enhancement, in my case apply tab for each each line is tiresome, very tiresome. Sometimes very frustrating.

I think MS Office always done something similar, why shouldn't LO do same?