Bug 63374 - calc gives no visual clue about enter/edit cell mode
Summary: calc gives no visual clue about enter/edit cell mode
Status: REOPENED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium enhancement
Assignee: Sahil Gautam
URL:
Whiteboard: target:24.8.0
Keywords:
: 116447 160312 (view as bug list)
Depends on:
Blocks: Calc-UX Cell-Edit-Mode
  Show dependency treegraph
 
Reported: 2013-04-10 11:45 UTC by almos
Modified: 2024-05-03 07:57 UTC (History)
11 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 almos 2013-04-10 11:45:56 UTC
Calc mimics the behavior of MS Excel: start typing into a cell, and you get into 'Enter' mode (enter/tab/cursor keys commit and step to an other cell), and F2 activates 'Edit' mode (only enter/tab commit changes). However, Excel shows the current state in the status bar, whereas Calc doesn't. This is highly confusing.

UI: this whole Enter/Edit distinction seems totally wrong to me, but it's worth keeping for compatibility with Excel.
Comment 1 tommy27 2014-01-02 14:20:08 UTC
confirmed. enhancement request. inherited from OOo.

how exactly Excel gives such a visual clue? could you provide a screenshot or description?
Comment 2 almos 2014-01-02 15:19:30 UTC
In excel the cell mode is shown in the bottom left corner (on the statusbar). See
http://office.microsoft.com/en-au/excel-help/excel-status-bar-options-HA010222505.aspx
Comment 3 almos 2014-12-06 13:57:28 UTC
Any update on this? I think this is a major usability problem in Calc.
Comment 4 Buovjaga 2018-03-17 16:43:36 UTC
*** Bug 116447 has been marked as a duplicate of this bug. ***
Comment 5 Thomas Lendo 2018-12-28 00:01:28 UTC
Adding needsUXEval to discuss the possible implementation(s) within the design/UX team.
Comment 6 Heiko Tietze 2020-10-28 13:30:47 UTC
Don't see the use case when this status bar information would be needed.
Comment 7 Cor Nouws 2020-11-11 14:41:25 UTC
(In reply to almos from comment #2)
> In excel the cell mode is shown in the bottom left corner (on the
> statusbar). See
> http://office.microsoft.com/en-au/excel-help/excel-status-bar-options-
> HA010222505.aspx

A selected cell has a clear border indication.
A cell in editing mode, does not have that.

So how clear do you want to show the difference :)

For me changing is not adding relevant user feedback. A WFM, I would say.
Comment 8 Heiko Tietze 2020-11-12 09:06:49 UTC
We discussed this topic in the design meeting.

While "Edit"/"Enter" resp. F2/"just type" makes arrow effective or not, and the "Point" information shown in formula edit mode, are different modes, it's quite clear what action you started. Plus, it's barely usable to require a glimpse at the statusbar. And since we also have quite a lot information in the statusbar, we decided to not implement the feature.
Comment 9 Severo Raz 2020-11-28 12:30:21 UTC
Here is a request that the UX Team please consider my points on why this is actually a valuable feature.

For the sake of clarity, let's call the mode where arrow keys move the cell cursor "cell-cursor mode" and the mode where arrow keys permit navigation within the edited text "text-cursor mode".  Let's say that they're both cursor modes.   Let's call the cell whose formula you're editing "formula cell".

These cursor modes are relevant when you are editing the formula of a particular cell.  While cell-cursor mode is the default when you start entering a formula into a cell by pressing "=" and is very useful for referencing nearby cells by navigating towards them with the arrow keys, text-cursor mode is necessary for modifying previously entered parts of your formula.  Even if you never make mistakes when entering your formulae, you might need text-cursor mode to make modifications to formulae if you want to use them for a slightly different purpose elsewhere.

Now, if while entering the formula in a cell, you happen to switch back-and-forth between text-cursor and cell-cursor modes several times, it is not impossible that you'll forget which mode you're on.  This is where a visual indication of what mode you're in would be useful.  Having it is not _essential_, but certainly can improve the user experience: if you think you're in text-cursor mode and press an arrow key, but you're really in cell-cursor mode, you will insert at least 3 characters (the address of the cell which your cell-cursor presently points at) in the formula cell which you will have to delete.  Having a visual indication can prevent this, arguably without negatively impacting user experience.

Now, I don't think MS Excel's approach is actually that useful: in the past I've preferred winging it and possibly deleting some characters than looking at the status bar to see which mode I'm in.  (I've criticised in the past when people have argued that a feature shall not be implemented in LO simply because MS Excel doesn't have it.)

I think some not terrible ways to implement this cursor mode visual indicator would be:

* Changing the cursor in the cell formula between a line and a block, where a block cursor indicates you're in cell-cursor mode.
* Adding a border to the formula cell, albeit one styled differently than the cell-cursor border. For example, the formula cell border during cell-cursor mode could have a dashed stroke.
* Changing the background color of the formula cell slightly according to the cursor mode.
* Adding arrow icons in all four directions of the cell under the cell-cursor while on cell-cursor mode; removing these icons while in text-cursor mode.

Anyway, these are just some ideas. I'm sure the UX team can come up with something better.

Sorry for the long comment.
Comment 10 Heiko Tietze 2020-12-02 14:36:18 UTC
(In reply to Severo Raz from comment #9)
> Now, if while entering the formula in a cell, you happen to switch
> back-and-forth between text-cursor and cell-cursor modes several times, it
> is not impossible that you'll forget which mode you're on.
Not a big deal, and you likely never look at the statusbar or other peripheral places when editing a formula. But admitted, it happens that you press the arrow accidentally.

> * Changing the cursor in the cell formula between a line and a block, where
> a block cursor indicates you're in cell-cursor mode.
We change the cursor in edit mode from Default to IBeam but only when over the cell. And leaving the edit mode does not immediately update the cursor. That could be improved.

> * Adding a border to the formula cell, albeit one styled differently than
> the cell-cursor border. For example, the formula cell border during
> cell-cursor mode could have a dashed stroke.
Don't think we should mess with decorations because the cell might be user-formatted. And any format is prone to fail for not being accessible or not fitting into the personal preferences.

> * Changing the background color of the formula cell slightly according to
> the cursor mode.
Same as above but less strict.

> * Adding arrow icons in all four directions of the cell under the
> cell-cursor while on cell-cursor mode; removing these icons while in
> text-cursor mode.
Sounds like over-engineering to me.
Comment 11 Ralf 2020-12-02 19:26:06 UTC
I think that it comes down to personal preferences and habits.

I often switch repeatedly between editing mode and entering mode when editing longer formulas. Therefore, I would find a clear status indicator very useful.

I often look at that indicator when working with Excel. I miss such an indicator when working with LibreOffice Calc.
Comment 12 Heiko Tietze 2020-12-04 13:41:01 UTC
We discussed the topic again in the design meeting and welcome your idea to change changing the background color when in edit mode. This should be an option for Tools > Options > Application Colors where default is None meaning the current behavior. But the user can change it to any color and have this as background then when in edit mode.

Another outcome is to have the cursor updated immediately. Better another ticket.
Comment 13 Stéphane Guillou (stragu) 2024-04-15 15:35:59 UTC
*** Bug 160312 has been marked as a duplicate of this bug. ***
Comment 14 Commit Notification 2024-04-22 11:29:59 UTC
Sahil Gautam committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/1cfc2e2c92e1259341ee18cf87be63c4dcebd33d

tdf#63374 Change cell background color when in edit mode

It will be available in 24.8.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 15 Heiko Tietze 2024-04-22 11:32:14 UTC
Find "[ ] Edit cell background highlighting" under tools > options > calc > view. It will toggle the cell background to the color defined under tools > options > application colors > Spreadsheet: Cell Focus (but only for single selections).

All kudos to Sahil for the patch!
Comment 16 Sergey Nemna 2024-04-27 13:11:41 UTC
@heik(In reply to Commit Notification from comment #14)
> Sahil Gautam committed a patch related to this issue.
> It has been pushed to "master":
> 
> https://git.libreoffice.org/core/commit/
> 1cfc2e2c92e1259341ee18cf87be63c4dcebd33d
> 
> tdf#63374 Change cell background color when in edit mode
> 
> It will be available in 24.8.0.
> 
> The patch should be included in the daily builds available at
> https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
> information about daily builds can be found at:
> https://wiki.documentfoundation.org/Testing_Daily_Builds
> 
> Affected users are encouraged to test the fix and report feedback.

Possibly, I misunderstand the essence of the fix. I was under impression that the idea was to provide a visual guide (background) to differentiate between the «Edit» mode and the «Quick-entering» mode (the one where user does not hit F2 first; no idea what is the official term for it) at any given moment while typing.

As it is now the cell background turns blue in any case, no matter whether F2 had been pressed before the typing commenced.

Either I am missing something, if so, I am sorry, or the issue can't be counted as resolved.

I tested it on this version:
Version: 24.8.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 9ad0eb9a62b572b15ae0bfd31674aedd77eb4761
CPU threads: 8; OS: Windows 10.0 Build 19044; UI render: Skia/Vulkan; VCL: win
Locale: en-GB (en_GB); UI: en-US
Calc: CL threaded
Comment 17 Stéphane Guillou (stragu) 2024-04-29 11:55:41 UTC
(In reply to Sergey Nemna from comment #16)
> As it is now the cell background turns blue in any case, no matter whether
> F2 had been pressed before the typing commenced.
I confirm that. The original request here and in duplicates was to have a visual indication that Cell Edit Mode is active(i.e. activated by F2, or double-click, or Edit > Cell Edit Mode), to differentiate from "quick edit/overwrite mode" (in which an arrow press exits the cell).
Sahil, can you make it so the highlight is only active when Edit Mode is on?
Comment 18 Heiko Tietze 2024-04-29 12:56:28 UTC
(In reply to Sergey Nemna from comment #16)
> to differentiate between the «Edit» mode and the «Quick-entering» mode
There is different edit mode, you either overtype the content with what you call quick entering or go into the same edit mode by keeping the content, aka F2.

The patch just (optionally) highlights the cell when in edit mode. => fixed
Comment 19 Sergey Nemna 2024-04-29 13:25:23 UTC
(In reply to Heiko Tietze from comment #18)
> (In reply to Sergey Nemna from comment #16)
> > to differentiate between the «Edit» mode and the «Quick-entering» mode
> There is different edit mode, you either overtype the content with what you
> call quick entering or go into the same edit mode by keeping the content,
> aka F2.
> 
> The patch just (optionally) highlights the cell when in edit mode. => fixed

I am not sure I understand. Is this patch about highlighting the cell where user is currently typing in? If so, it seems the aim has been reached (not sure why blinking cursor is not enough, but this extra functionality certainly does not hurt anyone).

But is there any possibility to have this blue (configurable) background applied when in the edit (F2) mode only? It would provide visual guidance, so the user would know which mode he works in. I thought the issue was all about this...
Comment 20 Stéphane Guillou (stragu) 2024-04-29 13:37:25 UTC
(In reply to Heiko Tietze from comment #18)
> The patch just (optionally) highlights the cell when in edit mode. => fixed
I checked with gtk3, kf5 and gen VCL plugins: it highlight both in Cell Edit Mode _and_ in "quick entering" mode.
OPs request was to differentiate between the two, which is not the case here.
Comment 21 Printf Debugging 2024-05-03 07:35:40 UTC
(In reply to Stéphane Guillou (stragu) from comment #17)
> (In reply to Sergey Nemna from comment #16)
> can you make it so the highlight is only active when Edit Mode is on?

So show the "Edit highlight" only when cell enters edit mode via F2 press?
Comment 22 Stéphane Guillou (stragu) 2024-05-03 07:41:41 UTC
(In reply to Printf Debugging from comment #21)
> (In reply to Stéphane Guillou (stragu) from comment #17)
> > (In reply to Sergey Nemna from comment #16)
> > can you make it so the highlight is only active when Edit Mode is on?
> 
> So show the "Edit highlight" only when cell enters edit mode via F2 press?
Yes (or via double-click, or via Edit > Cell Edit Mode – but I assume the path does not matter in the implementation?).
That would be what OP here, and in bug 116447 and bug 160312, were asking: being able to easily, visually differentiate between Edit Mode and "quick edit/overwrite".
Comment 23 Printf Debugging 2024-05-03 07:57:15 UTC
Yes, I get it now. So we want a way to know when the arrow keys move the caret "|" ("🥕" --> " 🥕") and when they move the cell focus i.e. committing the changes we made. And the highlighting means that the 🥕 will move instead of the box.