Ask Your Question

First line of document as file name instead of Untitled 1

asked 2018-01-20 13:11:26 +0100

natanvarga gravatar image

updated 2020-10-13 16:31:40 +0100

Alex Kemp gravatar image

How can I set LibreOffice (especially Writer) to use the first line of my document as the file name when saving it? If this feature doesn't exist yet, it would be really useful.

edit retag flag offensive close merge delete

2 Answers

Sort by » oldest newest most voted

answered 2018-01-20 16:17:58 +0100

Lupp gravatar image

There is no built-in setting to achieve what you want as far as I know.

See the solution by custom code here.

My suggestion: Don't do it. A filename shouldn't be a kind of an essay, but a thoroughly chosen identifier.

edit flag offensive delete link more


There is a more thoroughly considered "bug" (Enhancement Request) tdf#58685 You may vote it +1.

Lupp gravatar imageLupp ( 2018-01-20 16:29:08 +0100 )edit

answered 2018-01-22 01:55:10 +0100

librebel gravatar image

Hello @natanvarga,

In addition to the macro from @Lupp’s answer above, please also have a look at the macro in my answer here:

The first line does not neccessarily have to be a long essay, it could be just a short Chapter Title or so..

HTH, lib

edit flag offensive delete link more


I didn't want to put the accent on "essay" (only casual wording) but on "thoroughly chosen". Of course it isn't definitely impossible to make a thorough choice by filling a specific element of a text document provided by the template e.g. My definite experience from observing typists using MS Office some years ago: They don't. (As they refuse to use templates but derive the next letter from the previous one.)

Lupp gravatar imageLupp ( 2018-01-22 15:08:53 +0100 )edit
Login/Signup to Answer

Question Tools

1 follower


Asked: 2018-01-20 13:11:26 +0100

Seen: 808 times

Last updated: Jan 22 '18