Bug 129793 - Does the "Field codes" option in the Writer options "View" dialog have any purpose?
Summary: Does the "Field codes" option in the Writer options "View" dialog have any pu...
Status: VERIFIED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium enhancement
Assignee: Heiko Tietze
URL:
Whiteboard: target:6.5.0
Keywords:
Depends on:
Blocks: Options-Dialog-Writer
  Show dependency treegraph
 
Reported: 2020-01-04 20:27 UTC by sdc.blanco
Modified: 2020-01-13 07:08 UTC (History)
3 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 sdc.blanco 2020-01-04 20:27:48 UTC
In the spirit of simplification.  

Maybe the "Field Codes" option can be removed from:

Tools > Options > LO Writer > View - Field Codes

It does not seem to provide or do anything that View > Field Codes (Ctrl-F9) already provide.  

If true, then a rare opportunity to simply a UI dialog box.
Comment 1 Dieter 2020-01-06 12:50:22 UTC
(In reply to sdc.blanco from comment #0)
> It does not seem to provide or do anything that View > Field Codes (Ctrl-F9)
> already provide.  

I think, it provides a general setting (for all documents), while view => Fild codes is only for the actual document; see https://help.libreoffice.org/6.5/en-GB/text/shared/optionen/01040200.html?&DbPAR=WRITER&System=WIN: "Field codes
Displays the field names in the document instead of the contents of the fields. You can also choose View - Field Names in a text document."

Does this answer your question? => NEEDINFO
Comment 2 sdc.blanco 2020-01-06 14:16:18 UTC
(In reply to Dieter Praas from comment #1)
> Does this answer your question? => NEEDINFO

Thanks Dieter.  Please consider:

1. Set Field Codes in Options, and OK
2. In a document, hit Ctrl-F9, then look in Options again (see that setting for Field codes is now unset)
  
3. Show Field Codes in a document.  Open a new document (preferably a template with field codes, so you can quickly see the effect).  The field codes are shown.
4. Same document as in step 3, now hide field codes.  Open new document. The field codes are not shown.

In other words, in practice:

1.  Ctrl-F9 toggles the setting in Option.
2.  Opening new (or existing documents) adopts the current "show field code" setting of the current document  (with the exception that for Untitled (unsaved) new documents, even if Field Codes are set, it has no effect if you open an existing document).

If there are no "bugs" in the Option (in relation to intended operation).  Then my simple-minded suggestion was to drop this option from the Options - Writer - View menu, because it provides no functional value or operational effect that cannot already be achieved easily with View > Field Codes (Ctrl-F9).
Comment 3 Dieter 2020-01-06 14:27:11 UTC
After some testing I also can't see the benefit in "Field Codes" option in 
Tools > Options > LO Writer > View - Field Codes

cc: Design-Team for further input
Comment 4 Heiko Tietze 2020-01-07 13:46:51 UTC
Absolutely true, let's remove this option.
Comment 5 Commit Notification 2020-01-08 09:07:31 UTC
Heiko Tietze committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/468a740f0fe09f8939368eca3067b4101c84c057

Resolves tdf#129793 - Remove "Field codes" option

It will be available in 6.5.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 6 Cor Nouws 2020-01-08 11:20:12 UTC
(In reply to Heiko Tietze from comment #4)
> Absolutely true, let's remove this option.
Would it make sense to evaluate the suggestion in the light of other options that are present, people using Notebook Bar variations (that maybe not all offer the same as the main menu view?), ..?
Comment 7 Dieter 2020-01-13 07:08:06 UTC
Verified with

Version: 6.5.0.0.alpha0+ (x64)
Build ID: 350d25da375f221edfa37309324ce3c68cf297ef
CPU threads: 4; OS: Windows 10.0 Build 18362; UI render: default; VCL: win; 
Locale: de-DE (de_DE); UI-Language: en-GB
Calc: threaded

Heiko, thanks for fixing it!