Bug 129369 - Function suggestion while editing end of text content in cell
Summary: Function suggestion while editing end of text content in cell
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
6.0.7.3 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Cell-Edit-Mode
  Show dependency treegraph
 
Reported: 2019-12-13 14:53 UTC by Grobe
Modified: 2023-09-09 13:11 UTC (History)
6 users (show)

See Also:
Crash report or crash signature:


Attachments
Screen shot Windows 10 (58.81 KB, image/png)
2019-12-13 14:55 UTC, Grobe
Details
Screen shot Linux (147.16 KB, image/png)
2019-12-13 14:58 UTC, Grobe
Details
Spread sheet where the behavior is observed (14.04 KB, application/vnd.oasis.opendocument.spreadsheet)
2019-12-13 14:59 UTC, Grobe
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Grobe 2019-12-13 14:53:15 UTC
This issue affect both Windows and Linux. Here is the two versions/environoments where the behaviour occur in:

Windows 10
 Version: 6.3.2.2 (x86)
 Build ID: 98b30e735bda24bc04ab42594c85f7fd8be07b9c
 CPU threads: 8; OS: Windows 10.0; UI render: GL; VCL: win;
 Locale: nb-NO (nb_NO); UI-Language: en-US
 Calc: CL

Linux Lite 4.2
 Version: 6.0.7.3
 Build ID: 1:6.0.7-0ubuntu0.18.04.2
 CPU threads: 2; OS: Linux 4.15; UI render: default; VCL: gtk3; 
 Locale: nb-NO (en_US.UTF-8); Calc: group

Look at the screen copies as it depict the issue.

Steps to reproduce:
* Open the attached file "libo-suggestion-error-example.ods"
* Go to a cell similar contents to those in screen shot (e.g. cell M26) - last character is "a" or "b".
* Edit cell, Put the cursor at end of text.
* Press Back on keyboard to remove last character
* then enter "a" or "b"

Expected behavior: Behaves like any normal text edior, hitting Enter key makes the cursor go out of cell-edit mode, and the inserted character stay put.

Observed behavior: After enter the last character in cell, Calc suggest a formula to insert. Since user expect Calc to insert only "a", user may not be aware until after Enter is presset and must then go back to re-edit the contents of the cell.

Consistency: The observed behaviour may or may not affect editng on any cell. If the behaviour seems not being present, then just move down to next cell until the beavior occur. I'm not able to predict which cells will be affected. It also may occur on different cells on different computers.

Workaround: There is no actual workaround on this, but if user is aware that the behavior can occur at any time, then when the  press any arrow key on keyboard to cancel the function suggestion and get back to normal text editing mode, then press Enter to get out of cell edit mode.
Comment 1 Grobe 2019-12-13 14:55:57 UTC
Created attachment 156553 [details]
Screen shot Windows 10
Comment 2 Grobe 2019-12-13 14:58:03 UTC
Created attachment 156554 [details]
Screen shot Linux

Linux Lite 4.2
LibO Version: 6.0.7.3  /  Build ID: 1:6.0.7-0ubuntu0.18.04.2
Comment 3 Grobe 2019-12-13 14:59:35 UTC
Created attachment 156555 [details]
Spread sheet where the behavior is observed

Coloumn M is affected by this - see description in bug repport
Comment 4 Xisco Faulí 2020-02-18 16:38:40 UTC
I can't reproduce it in

Version: 7.0.0.0.alpha0+
Build ID: 28d844a589e52abfe62dc66b888e78665221ba28
CPU threads: 4; OS: Linux 4.19; UI render: default; VCL: x11; 
Locale: en-US (en_US.UTF-8); UI-Language: en-US
Calc: threaded

nor in

Versión: 6.4.0.3 (x86)
Id. de compilación: b0a288ab3d2d4774cb44b62f04d5d28733ac6df8
Subprocs. CPU: 2; SO: Windows 6.1 Service Pack 1 Build 7601; Repres. IU: predet.; VCL: win; 
Configuración regional: es-ES (es_ES); Idioma de IU: es-ES
Calc: threaded
Comment 5 Xisco Faulí 2020-02-18 16:41:50 UTC
but I do if wildcards are enabled ( Tools - Options - Calc - Calculate - Formula Wildcards )
Comment 6 Xisco Faulí 2020-02-18 16:47:35 UTC
(In reply to Xisco Faulí from comment #5)
> but I do if wildcards are enabled ( Tools - Options - Calc - Calculate -
> Formula Wildcards )

@Eike, I think it was you who implemented it. Could you please comment on whether it's the expected behaviour ?
Comment 7 Eike Rathke 2020-02-19 10:16:56 UTC
That's just the normal function names tooltip, and no, it wasn't me who implemented it, but I reviewed the code back then. The awkward thing here is that a cell content starting with a + plus character (and also - minus character fwiw) is regarded as a formula entry (for those data typists who are working on the numeric keypad). We maybe could disable the tooltips if the entry does not start with a = equal character, or even better have an option whether +|- should start a formula (which more often gets in the way than not).

(In reply to Xisco Faulí from comment #5)
> but I do if wildcards are enabled ( Tools - Options - Calc - Calculate -
> Formula Wildcards )
Completely unrelated. The tooltip is displayed with or without, unless disabled with Tools -> AutoInput.
Comment 8 Buovjaga 2020-05-11 09:04:05 UTC
(In reply to Eike Rathke from comment #7)
> That's just the normal function names tooltip, and no, it wasn't me who
> implemented it, but I reviewed the code back then. The awkward thing here is
> that a cell content starting with a + plus character (and also - minus
> character fwiw) is regarded as a formula entry (for those data typists who
> are working on the numeric keypad). We maybe could disable the tooltips if
> the entry does not start with a = equal character, or even better have an
> option whether +|- should start a formula (which more often gets in the way
> than not).

UX evaluation needed for the option implementation
Comment 9 Heiko Tietze 2020-05-11 09:15:00 UTC
(In reply to Eike Rathke from comment #7)
> We maybe could disable the tooltips if the entry does not start with 
> a = equal character, or even better have an option whether +|- should 
> start a formula (which more often gets in the way than not).

The function could be labeled "[ ] Direct numpad mode" (or something else) with a tooltip "Enable this option to use +/- from the numpad to start a function without the need to use = at the beginning" (terrible English; needs more advanced speaker). It should be off by default as users who get annoyed by the tooltip won't find the right checkbox easily.

Nice easyhack with medium difficulty.
Comment 10 QA Administrators 2022-10-10 03:31:32 UTC Comment hidden (obsolete)
Comment 11 Grobe 2022-10-10 18:32:46 UTC
Can still reproduce with that same file.

Version: 7.2.7.2
Build ID: 20(Build:2)
CPU threads: 4; OS: Linux 5.19; UI render: default; VCL: gtk3
Locale: nb-NO (en_US.UTF-8); UI: en-US
Calc: threaded

This is the particular steps I did to reproduce:
* Open document in Libre Office
* Put cursor in cell M26
* Hit F2 to edit.
* Hit back
* Hit "a" + Enter
* Hit Up and F2 (to edit same dell again)
* Hit back
* Hit "b" + Enter
* Repeat for M27
* Hit Enter twice to go to M30
* Hit F2 and Back
* Hit "a"

Now, Calc would suggest insertion of the formula similar as shown in screenshots added back in 2019.