diff --git a/README.md b/README.md index 006f2d6..0a70519 100644 --- a/README.md +++ b/README.md @@ -10,6 +10,7 @@ https://docs.gtk.org/gtk3/text-widget-overview.html Pour la release 4.0 : +- [ ] merger le mec qui m'a fait un scroll dymanique - à réparer : - [ ] `gtk_widget_get_scale_factor` ??? - à changer : @@ -17,7 +18,6 @@ Pour la release 4.0 : - [ ] autoriser la suppression des shortcuts - [ ] valeurs par défaut des shortcuts ? - à terminer : - - [ ] insert link ? - [ ] "remove tags" action - à faire : - [ ] retenir le scroll et le numéro de page à l'échelle de la gedit.view @@ -57,7 +57,6 @@ Pour un moment indéterminé : - [ ] paramètres de thème - [ ] CSS for admonitions (and other default plugins ?) - [ ] and pymdown ?? -- [ ] bring back the fullscreen, but better ~ TODO --> diff --git a/markdown_preview/prefs/export_assistant.py b/markdown_preview/prefs/export_assistant.py index e89e33e..3479c22 100644 --- a/markdown_preview/prefs/export_assistant.py +++ b/markdown_preview/prefs/export_assistant.py @@ -267,7 +267,8 @@ def launch_file_chooser(self, output_extension): file_chooser = Gtk.FileChooserNative.new(_("Export the preview"), \ self.gedit_window, Gtk.FileChooserAction.SAVE, \ _("Export"), _("Cancel")) - name = get_display_name(self.gedit_window.get_active_document()) + doc = self.gedit_window.get_active_document() + name = get_display_name(doc) folder = doc.get_file().get_location().get_parent().get_path() # XXX should i remove the former file extension from the string ? name = str(name + ' ' + _("(exported)") + output_extension) diff --git a/org.gnome.gedit.plugins.markdown_preview.gschema.xml b/org.gnome.gedit.plugins.markdown_preview.gschema.xml index 6d41576..9a30f34 100644 --- a/org.gnome.gedit.plugins.markdown_preview.gschema.xml +++ b/org.gnome.gedit.plugins.markdown_preview.gschema.xml @@ -83,7 +83,7 @@ - ['pandoc', '-s', '$INPUT_FILE', '--metadata', 'pagetitle=Preview'] + ['pandoc', '-s', '$INPUT_FILE', '--metadata', 'title=Preview'] Pandoc rendering command line The command line used for pandoc rendering. It has to return HTML code