Giter Club home page Giter Club logo

gedit-markdownpreview's People

Contributors

aliva avatar bstin avatar joshp23 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

gedit-markdownpreview's Issues

request: editor auto formating

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

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'

Support RTL text

using <p dir="auto"> I can change paragraph direction in generated HTML

filetypes

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.

Not working with gedit 3.34.1

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

Blank preview panel with dark GTK theme

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

can it have dark mode ?

I doubt it would be a major change. Atleast a branch so that git checkout would simply turn it dark

Ability to show and hide preview

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.

not running in 3.36.1

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

Strike through is not rendering with Gedit 3.28.1 and latest from Master.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.