We will be migrating from Ask to Discourse on the first week of August, read the details here

Ask Your Question

First line of document as file name instead of Untitled 1 [closed]

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

natanvarga gravatar image

updated 2021-06-21 11:00:55 +0200

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 reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by Alex Kemp
close date 2021-02-14 12:02:10.607325

2 Answers

Sort by » oldest newest most voted

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

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 +0200 )edit

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

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 +0200 )edit

Question Tools

1 follower


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

Seen: 1,039 times

Last updated: Jan 22 '18