-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Keyboard shorcuts #4
Comments
It's a plugin i did mainly for my personal use, the code really looks like shit (i shouldn't have used pandoc it was a horrible idea) and i broke a few things with the menu recently when i experimented some GTK+ technologies i didn't know about, Gedit maintainers would laugh if they see it 😅 Also, my plugins are only around 8 months old, it's not surprising they're not well referenced yet. I guess i should tell Gedit devs about these plugins if i want the wiki to be up-to-date
Maybe when it will be more seriously designed (not using pandoc for the preview, showing an "export" dialog with options, etc. also i want some support for reveal.js)
I wasn't sure about doing this because of potential conflicts with other plugins, for example |
But it works, the other markdown plugins do not! This is what counts :)
That lies in the nature of keyboard shortcuts.
Do you think that this is easily doable? With keyboard shortcuts and your plugin, gedit would be finally a solid alternative to other markdown editors, since it already has a bunch of useful features for manipulating text. |
It's probably easy, but i'll do it later, i'm renaming the issue so i'll not forget about it |
Merci beaucoup! |
mid december i guess |
|
Wohoo! While trying to enable the updated version from the master branch in the plugins menu, gedit shows this:
Before that I've deleted the old files from
|
as i wrote in the commit message, that's a work in progress and it's broken. but here your error is just because of #5, do |
i began an export dialog, empty for now i tried a few things for editing-related actions
Ok. Thanks for keeping us up-to-date! |
Keyboard shortcuts don't work (why?) and the behavior regarding blocks can be improved (new line when beginning a list ? '```' tags if several lines of monospace ? etc.)
I couldn't resist the temptation to use your plugin productively and want to share with you some observations:
Can't wait to have configurable shortcuts for formatting. Keep up the good work! |
Just wanted to mention that I still use your great plugin and hope that you'll find time to improve it. Thanks! |
To be honest i'm quite stuck concerning shortcuts, because for example ctrl+shift+b works fine and add tags for bold, but anything with a number fails (sad for the titles), and i've no idea why. also, I found the perfect gtk widget for configurable shortcuts but it's a really weird one to use and i couldn't make it work like i want for now I didn't give up, don't worry, it will eventually be implemented 😊 |
Hope dies last :) |
How are things going? |
I haven't retry yet |
Ok. Is it possible that you change the default shortcuts to the following in the meantime?
|
Since you still seem to be stuck with those two issues, I have some suggestions to simplify things: The keyboard shortcut functionality could be released as a separate plugin, as it already was done before. By doing so, you wouldn't have to struggle with the gtk widget, you've mentioned earlier, because, imho, it would be sufficient to agree upon default shortcuts, that don't conflict with the Gedit ones. If a user desires to tweak those shortcuts, he could do it in the source code, presupposed the code is commented accordingly and is easily understandable by coding illiterate users. I propose the following:
This extension allows using strike with python-markdown. The most important thing is, however, how those shortcuts should be applied: At the moment a Markdown tag can only be applied when a word is selected. From a usability point of view this should be improved to the degree that it would be enough to have the text cursor either at the beginning of a word (before the first letter) or at the end (after the last letter) and also between the letters of a word to apply formatting, without the necessity to select the whole word! This would save a lot of clicks and make formatting with keyboard shortcuts comfortable and fast. The same principle should be applied to headers and quotes — it should be enough to have the cursor somewhere within the sentence to apply formatting. To remove formatting, either This formatting behaviour is very well implemented in Zim. Since it's also written in Python, it could serve as an inspiration. What do you think? |
I'm late to the party, wanted a Markdown preview plugin for Gedit and landed here. This plugin installs easily enough on Ubuntu 19.10 and my system already had all of the dependencies installed. If I may, let me make the following comments:
|
I didn't tell it here but the widget now kinda works, the real issue is that any shortcut with a number fails.
so that would be hard
I use
These ones are the default shortcuts for case conversion
Yes it's listed in my readme since 3rd party extensions are now supported
I think it's important to get something working first, and think about the UX only then |
I don't, python3-markdown is here as an alternative because i sometimes need its extensions, but it can't export files as PDF and it can't do revealjs
I'm actually adding the possibility to configure the command line it uses, during the modifications the CSS is broken but it'll be back along with a working GUI for revealjs rendering options
Well the editor is stable but not the plugin lol |
Yello! Just installed this plugin with hopes to add quick markdown editing options to gedit, for cases when I don't want to open a more fully-featured editor. I tried to look for the editing options, but somehow couldn't find any, nor did any keyboard shortcuts that I tried work. Looking through this thread it seems like, at least once upon time, there were keyboard shortcuts implemented to some extent. What is the status of these keyboard shortcuts at the moment? |
@maoschanz Thanks for clearing things out! I'll be using manual styling, as I have until now :). |
related to #4 the contextual menu has been restructured too, to include more actions
i think i'll release a version where the actions currently working will be listed in the contextual menu, so at least the main feature will be available i mean, even without the shortcuts, inserting a 5-columns-wide table is easier with just 2 clicks than by typing the ASCII characters lol and then the shortcuts themselves could be released later when i'll take a little time to figure out the problems with them |
This sounds very reasonable. Release new features incrementally. Release as often as you like. |
Are the shortcuts available? Or is this a work in progress? If this is already possible, could someone tell me how to make them work? |
@maoschanz I cannot. I see only "General options, Backend, Style" but I do not have the shortcuts part behind style. |
oh sorry you're right i forgot i didn't release the version with this feature yet then it's indeed not available i lost my hard drive this summer so i don't have this project on my personal computer currently, and i lost my WIPs, but i'll give it a try again in a few weeks, after my more important projects |
ok, I' ll wait. And thanks for sharing this plugin! |
Thanks for creating this useful plugin! Seems to be stable and fully functional on Ubuntu 18.10.
Although you mention
libwebkit2gtk-4.0-dev
as a dependency, I only needed to installpandoc
for the installation.libwebkit2gtk-4.0-37
was already present on my machine.I'm wondering why your great plugin isn't mentioned on the official Gedit site in plugins or markdown? Even a Google search doesn't find it, at least with
gedit markdown plugin
. Only by searching on GitHub I was lucky to discover it!Do you actually plan to release it as a packaged plugin, so that people can easily find and install it through the OS' repository? When searching with
apt
(apt search gedit-plugin*
) you get a lot of Gedit plugins, but your isn't there.Oh, and one more thing: It's obvious that you are an avid markdown user. Thus, you use the bold, italic and header formats a lot. While specialized markdown editors allow to use keyboard shortcuts for formatting, Gedit is missing this functionality. However, somebody created a plugin for that, but it's unmaintained and not working with the latest version of Gedit. Since I'm code illiterate, maybe you could have a look on it? I'm sure that keyboard shortcuts for formatting would drastically improve the usability!
Actually only a handful would suffice for the beginning:
Ctrl+1-5
for headersCtrl+b
for boldCtrl+i
for italicWould be great to hear you opinion!
The text was updated successfully, but these errors were encountered: