[Github-comments] [geany] document: show informational doc message after first reload (#672)

Colomban Wendling notifications at xxxxx
Thu Oct 29 18:18:52 UTC 2015


> @@ -1545,6 +1564,21 @@ gboolean document_reload_force(GeanyDocument *doc, const gchar *forced_enc)
>  	pos = sci_get_current_position(doc->editor->sci);
>  	new_doc = document_open_file_full(doc, NULL, pos, doc->readonly, doc->file_type, forced_enc);
>  
> +	if (file_prefs.keep_edit_history_on_reload && file_prefs.show_keep_edit_history_on_reload_msg)
> +	{
> +		bar = document_show_message(doc, GTK_MESSAGE_INFO,
> +						on_keep_edit_history_on_reload_response,
> +						GTK_STOCK_OK, GTK_RESPONSE_ACCEPT,
> +						_("Discard history"), GTK_RESPONSE_NO,
> +						NULL, 0, _("The buffer's previous state is stored in the history. "
> +						"Undoing restores it. You can disable this by discarding the history upon "
> +						"reload. This message will not be displayed again. "
> +						"Your choice can be changed in the various preferences."),

@elextr What about

> The buffer's previous state is stored in the undo history, and then file reloading can be undone.  You can disable this by discarding the history upon reload.  This message will not be displayed again, but your can change the behavior later in the various preference.

While I generally like short sentences, I feel like the 5 sentences here are a bit heavy to read.

---
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/pull/672/files#r43424206
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20151029/b67425d4/attachment.html>


More information about the Github-comments mailing list