aliva / gedit-markdownpreview Goto Github PK
View Code? Open in Web Editor NEWLicense: GNU General Public License v2.0
License: GNU General Public License v2.0
I was wondering if it would be possible to add a feature where the editor predicts some basic data entry needs as you type. For example, if you're writing a bullet point list and are tabbed/indented, gedit could pre-enter the tab and the * character on the next line. For a deeply nested list that would be a big help.
I'm still loving it as is though. Thanks again for making the plugin.
local links in notes fail, displaying a blank page rather than opening the requested note. Here is the only output when launching from terminal and reproducing the error:
~$ gedit
PLEASE USE ZEITGEIST 0.9.11 or above
Traceback (most recent call last):
File "/usr/lib/x86_64-linux-gnu/gedit/plugins/dashboard/__init__.py", line 58, in _add_tab
[0].get_children()[0].get_children()[1].hide()
AttributeError: 'Image' object has no attribute 'get_children'
using <p dir="auto">
I can change paragraph direction in generated HTML
The plugin is great. It seems to be driven by the file name extension. It works when the file name ends in .mkd Could you add support for .md which I believe is another common markdown file extension.
Current HTML hurts my eyes
I just remembered I had this plugin installed and realized it's no longer working. Nothing happens using the keyboard shortcut and there's no stdout from gedit at all. I'm not sure how to debug it. I'm using Manjaro GNOME.
/home/yochanan/.local/share/gedit/plugins/
├── markdownpreview
│ ├── markdownpreview.py
│ ├── style.css
│ └── template.html
├── markdownpreview.plugin
Manjaro GNOME with the
gnome-shell 3.30.2
Matcha Dark Sea GTK Theme
$ gedit
(gedit:25827): Gtk-WARNING **: 07:39:02.813: Theme parsing error: gtk.css:12:80: 'gtkalpha' is not a valid color name
(gedit:25827): Gtk-WARNING **: 07:39:02.813: Theme parsing error: gtk.css:15:80: 'gtkalpha' is not a valid color name
/home/yochanan/.local/share/gedit/plugins/markdownpreview/markdownpreview.py:4: PyGIWarning: WebKit2 was imported without specifying a version first. Use gi.require_version('WebKit2', '4.0') before import to ensure that the right version gets loaded.
from gi.repository import Gedit, GObject, Gtk, WebKit2, Gio
Traceback (most recent call last):
File "/home/yochanan/.local/share/gedit/plugins/markdownpreview/markdownpreview.py", line 68, in menu_button_handler
self.attach_to_view()
File "/home/yochanan/.local/share/gedit/plugins/markdownpreview/markdownpreview.py", line 81, in attach_to_view
self.toggle_preview(None, None, view)
File "/home/yochanan/.local/share/gedit/plugins/markdownpreview/markdownpreview.py", line 92, in toggle_preview
self.enable_preview(view)
File "/home/yochanan/.local/share/gedit/plugins/markdownpreview/markdownpreview.py", line 113, in enable_preview
self.buffer_changed(buffer, view)
File "/home/yochanan/.local/share/gedit/plugins/markdownpreview/markdownpreview.py", line 161, in buffer_changed
scroll_position=self.get_scroller_pos(view),
File "/home/yochanan/.local/share/gedit/plugins/markdownpreview/markdownpreview.py", line 169, in get_scroller_pos
value = adj.get_value() / value_limit
ZeroDivisionError: float division by zero
Traceback (most recent call last):
File "/home/yochanan/.local/share/gedit/plugins/markdownpreview/markdownpreview.py", line 175, in buffer_scrolled
scroll_position = self.get_scroller_pos(view)
File "/home/yochanan/.local/share/gedit/plugins/markdownpreview/markdownpreview.py", line 169, in get_scroller_pos
value = adj.get_value() / value_limit
ZeroDivisionError: float division by zero
Traceback (most recent call last):
File "/home/yochanan/.local/share/gedit/plugins/markdownpreview/markdownpreview.py", line 175, in buffer_scrolled
scroll_position = self.get_scroller_pos(view)
File "/home/yochanan/.local/share/gedit/plugins/markdownpreview/markdownpreview.py", line 169, in get_scroller_pos
value = adj.get_value() / value_limit
ZeroDivisionError: float division by zero
(WebKitWebProcess:25851): Gtk-WARNING **: 07:39:08.360: Theme parsing error: gtk.css:12:80: 'gtkalpha' is not a valid color name
(WebKitWebProcess:25851): Gtk-WARNING **: 07:39:08.360: Theme parsing error: gtk.css:15:80: 'gtkalpha' is not a valid color name
Traceback (most recent call last):
File "/home/yochanan/.local/share/gedit/plugins/markdownpreview/markdownpreview.py", line 62, in do_deactivate
self.disable_preview(view)
File "/home/yochanan/.local/share/gedit/plugins/markdownpreview/markdownpreview.py", line 121, in disable_preview
buffer.disconnect_by_func(self.buffer_changed)
TypeError: nothing connected to <bound method MarkdownPreviewWindowActivatable.buffer_changed of <markdownpreview.MarkdownPreviewWindowActivatable object at 0x7f123f3f1f78 (MarkdownPreviewWindowActivatable at 0x5630cda6cea0)>>
(gedit:25827): Gtk-CRITICAL **: 07:39:12.785: gtk_notebook_get_tab_label: assertion 'list != NULL' failed
I doubt it would be a major change. Atleast a branch so that git checkout would simply turn it dark
It would be nice to have a menu entry and a shortcut to show or hide preview, sometimes I'm working on a small screen space or simple markdown and preview isn't necessary.
After upgrading to Ubuntu 20.04 and attempting to run the plugin with Gedit launched from terminal, the following error occurs:
File "/home/joshp/.local/share/gedit/plugins/markdownpreview/markdownpreview.py", line 76, in menu_button_handler
self.attach_to_view()
File "/home/joshp/.local/share/gedit/plugins/markdownpreview/markdownpreview.py", line 89, in attach_to_view
self.toggle_preview(None, None, view)
File "/home/joshp/.local/share/gedit/plugins/markdownpreview/markdownpreview.py", line 100, in toggle_preview
self.enable_preview(view)
File "/home/joshp/.local/share/gedit/plugins/markdownpreview/markdownpreview.py", line 118, in enable_preview
box.pack_end(webview, True, True, 0)
AttributeError: 'GeditViewFrame' object has no attribute 'pack_end'
Strike through is not rendering with Gedit 3.28.1 and latest from Master.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.