Deformatting a word takes one action too much

Reported by sojusnik on 2012-08-14
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Zim
Low
Unassigned

Bug Description

To make the word "example" bold, you have to press "Ctrl+B" once. To de-bold it, you have to press "Ctrl-B" twice, not once, as it should be. Same applies to other formatting options.

BTW: Is it planned to have multiple formatting options for a word, f.i. bold and striked?

On Tue, Aug 14, 2012 at 9:54 PM, sojusnik <email address hidden> wrote:
> Public bug reported:
>
> To make the word "example" bold, you have to press "Ctrl+B" once. To de-
> bold it, you have to press "Ctrl-B" twice, not once, as it should be.
> Same applies to other formatting options.

can you make the example more detailed? If I select a word and press
Ctrl-B it becomes bold, if I then select it again and press Ctrl-B
again it becomes normal. Only if you select the word + e.g. some
whitespace that is not yet bold, you may have to press twice.

> BTW: Is it planned to have multiple formatting options for a word, f.i.
> bold and striked?

Yes, there is already another report for that.

Regards,

Jaap

Changed in zim:
status: New → Incomplete
sojusnik (sojusnik) wrote :

I realized where the problem lies!

When a word is completely selected, without empty space, it toggles like it should, but if a word is just selected by mouse cursor, you have to press 2 times do de-format it again. The option, that a cursor in a word automatically selects the whole word is enabled in my ZIM settings.

Can you reproduce this behaviour?

On Tue, Aug 21, 2012 at 7:40 PM, sojusnik <email address hidden> wrote:
> I realized where the problem lies!
>
> When a word is completely selected, without empty space, it toggles like
> it should, but if a word is just selected by mouse cursor, you have to
> press 2 times do de-format it again. The option, that a cursor in a word
> automatically selects the whole word is enabled in my ZIM settings.
>
> Can you reproduce this behaviour?

Only if I also select some space when I use the mouse.

From the code there is no difference between a selection by mouse or
by any other way. THe code just checks for a selection yes/no, so if
the selection is the same I see the same behavior.

Regards,

Jaap

sojusnik (sojusnik) wrote :

I'm speaking about the "auto select" preference. If it is set toggling the format while the cursor is in the middle of a word, it will automatically select the word and format it. Only with this feature the toggling takes 3 steps, otherwise only 2.

Can you see it now?

On Mon, Aug 27, 2012 at 10:28 PM, sojusnik <email address hidden> wrote:
> I'm speaking about the "auto select" preference. If it is set toggling
> the format while the cursor is in the middle of a word, it will
> automatically select the word and format it. Only with this feature the
> toggling takes 3 steps, otherwise only 2.
>
> Can you see it now?

The autoselect only works when you format something, to remove the
format you need to select the word first. This is the intended
behavior.

Regards,

Jaap

sojusnik (sojusnik) wrote :

Can you implement, that autoselect also works with deformating? It's very convenient to move the cursor into a word and format or deformat it. Selecting the word does take too much time in comparison to the aforementioned method.

On Tue, Aug 28, 2012 at 4:02 PM, sojusnik <email address hidden> wrote:
> Can you implement, that autoselect also works with deformating? It's
> very convenient to move the cursor into a word and format or deformat
> it. Selecting the word does take too much time in comparison to the
> aforementioned method.

No. If you do that it is not possible to type unformatted text in the
middle of a formatted region. I did a lot of trials, but no sane way
to do that without breaking other use cases.

Also from what I observed, people do much more often apply formatting
than de-apply formatting. So my estimate is that the need to select
for formatting has small impact.

-- Jaap

sojusnik (sojusnik) wrote :

Sorry - I don't quite follow. Take for example LibreOffice. There you
can put the cursor in the middle of a word and the f.i. press Strg+I
and it will be italic, use Strg+I another time, and it's normal again.
In ZIM you have to press one time more to make the word normal again.

Can you explain in more detail, why do you think, that implementing
the same behaviour like it's done in LibreOffice is not possible in
ZIM?

2012/8/28 Jaap Karssenberg <email address hidden>:
> On Tue, Aug 28, 2012 at 4:02 PM, sojusnik <email address hidden> wrote:
>> Can you implement, that autoselect also works with deformating? It's
>> very convenient to move the cursor into a word and format or deformat
>> it. Selecting the word does take too much time in comparison to the
>> aforementioned method.
>
> No. If you do that it is not possible to type unformatted text in the
> middle of a formatted region. I did a lot of trials, but no sane way
> to do that without breaking other use cases.
>
> Also from what I observed, people do much more often apply formatting
> than de-apply formatting. So my estimate is that the need to select
> for formatting has small impact.
>
> -- Jaap
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1036815
>
> Title:
> Deformatting a word takes one action too much
>
> Status in Zim desktop wiki:
> Incomplete
>
> Bug description:
> To make the word "example" bold, you have to press "Ctrl+B" once. To
> de-bold it, you have to press "Ctrl-B" twice, not once, as it should
> be. Same applies to other formatting options.
>
> BTW: Is it planned to have multiple formatting options for a word,
> f.i. bold and striked?
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/zim/+bug/1036815/+subscriptions

Trick seems to be that they only trigger this behavior when the cursor
is in the middel of the word, but not at the end or begin. Slightly
difference than the behavior in zim, but might just work.

-- Jaap

sojusnik (sojusnik) wrote :

Great to hear, that this will be implemented soon!

Wishing you the best!

2012/9/24 Jaap Karssenberg <email address hidden>:
> Trick seems to be that they only trigger this behavior when the cursor
> is in the middel of the word, but not at the end or begin. Slightly
> difference than the behavior in zim, but might just work.
>
> -- Jaap
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1036815
>
> Title:
> Deformatting a word takes one action too much
>
> Status in Zim desktop wiki:
> Incomplete
>
> Bug description:
> To make the word "example" bold, you have to press "Ctrl+B" once. To
> de-bold it, you have to press "Ctrl-B" twice, not once, as it should
> be. Same applies to other formatting options.
>
> BTW: Is it planned to have multiple formatting options for a word,
> f.i. bold and striked?
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/zim/+bug/1036815/+subscriptions

Launchpad Janitor (janitor) wrote :

[Expired for Zim because there has been no activity for 60 days.]

Changed in zim:
status: Incomplete → Expired
Changed in zim:
status: Expired → Confirmed
importance: Undecided → Low
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers