[Github-comments] [geany/geany] Add reload all keybinding (#2859)
David Yang
notifications at xxxxx
Mon Aug 9 03:54:08 UTC 2021
@Davidy22 commented on this pull request.
> @@ -335,6 +335,21 @@ void on_toolbutton_reload_clicked(GtkAction *action, gpointer user_data)
document_reload_prompt(doc, NULL);
}
+/* reload all files */
+void on_toolbutton_reload_all_clicked(GtkAction *action, gpointer user_data)
+{
+ guint i;
+ gint cur_page = gtk_notebook_get_current_page(GTK_NOTEBOOK(main_widgets.notebook));
+
+ foreach_document(i)
+ {
+ if (! (documents[i]->file_name == NULL))
So I've been using it for a bit and I guess it's technically correct, it notifies when there's undo history on a tab about to be reloaded and the message reflects that, but it's kind of annoying when tabs with saved documents are throwing the notification. I can see why this setting is true by default. If this is actually what we want I'll add it to the pull request.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/pull/2859#discussion_r684889145
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20210808/7214cf23/attachment.htm>
More information about the Github-comments
mailing list