Komodo / markdown-viewer

Provides Markdown previewing for Komodo Markdown files
8 stars 1 forks source link

Preview button placement algorithm problems #3

Closed awilkins closed 9 years ago

awilkins commented 9 years ago

Linux (Ubuntu) with dual monitors

Preview button places correctly :

If you

This is all very confusing when you first install the add on and try it out in a Komodo window running full screen on a dual monitor setup - it appears not to work at all until you notice the button floating on the other screen.

If fixing this is hard, can I suggest that instead of a button, you add an item to the context menu, like the "Browser Preview" option?

Naatan commented 9 years ago

Using the browser preview button is an idea I also offered, which I think Todd is considering. The current preview button serves its purpose but the UX is inconsistent.

awilkins commented 9 years ago

Shortly after writing this ticket I looked at the other ticket asking for a different Markdown renderer. I also wouldn't mind seeing, e.g. redcarpet support.

Then I thought : Hey, wouldn't it be great if there was an addon that would take ANY file, run it through ANY kind of processor, and serve it up as HTML to the browser preview. Would be great if that was baked into Komodo ; browser preview that had an optional process-the-file-into-html

/me wonders if you can extend the baked-in dialogs

Naatan commented 9 years ago

You seem to have many similar thoughts to our dev team, is all I will say ;)

waylan commented 9 years ago

Back to the originally posted problem, I agree adding the option to the View menu and/or the context menu would be better, and while you're at it, allow it to be available on other file extensions (I often use .txt for markdown files). Of course, if you do something like allow it to run any command that returns HTML (which would be way better), you will need it to work with other file extensions (it could then be used for ReST/textile/etc).

waylan commented 9 years ago

Cool, I just realized that if I set my "file type" as "Markdown" for a file, then the preview button is available (no need to offer an addon specific way to designate file types). Although, when I change the file type for a single file, I have to switch to a different tab, then switch back for the button to show up. So, this still applies to the original reported problem. However, after I globally set *.txt to be Markdown, the button always appears. Even so the inconsistency is annoying.

mpathy commented 9 years ago

+1 to just keep it in the main Toolbar, or even just in the menu - with an convinient keyboard shortcut. I have exactly the same problems and additionally this floating preview button is inconsistent with the current UI of Komodo Edit. I will use my own solution based on a macro and Strapdown.js until it is fixed. Strapdown.js looks better by the way, you can easily add some templates to it. But I keep a eye on the plugin ;)

Naatan commented 9 years ago

Markdown viewer has been built-in to Komodo, please ensure you're running Komodo 9.2.1 and uninstall the addon (it overrides the built-in version).

The button has since moved to the toolbar.