Git Product home page Git Product logo

markmywords's Introduction

MarkMyWords

A minimal markdown editor

Status: work in progress

Installation:

  • AUR package by emersion at https://github.com/emersion/aur-markmywords

  • PPA: ppa:voldyman/markmywords

    sudo add-apt-repository ppa:voldyman/markmywords
    sudo apt-get update
    sudo apt-get install mark-my-words
  • openSUSE package:

    sudo zypper ar -f obs://X11:Pantheon pantheon
    sudo zypper ref
    sudo zypper in markmywords

Screenshot

screenshot

Author: Akshay Shekher

How to build

sudo apt-get install libwebkit2gtk-3.0-dev 
sudo apt-get install libgtksourceview-3.0-dev
sudo apt-get install valac
git clone https://github.com/voldyman/MarkMyWords.git
cd MarkMyWords
mkdir build && cd build 
cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=/usr ../
make

Todo

  • Markdown Parsing
  • Live Preview
  • File IO
  • State management
  • Monitor file for changes
  • Export HTML
  • Export PDF
  • Preferences
  • Github markdown
  • Versatile keybindings

markmywords's People

Contributors

aritheelk avatar city-busz avatar codygarver avatar d4n14l avatar emersion avatar jmoerman avatar jubalh avatar nawer avatar obsidien avatar perfectcarl avatar vistaus avatar voldyman avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

markmywords's Issues

Export to PDF

Just opening an issue about this feature. Do you know how to convert a WebkitView to PDF? I wasn't able to find how to achieve that.

Seems that we could use get_snapshot() (http://www.valadoc.org/#!api=webkit2gtk-4.0/WebKit.WebView.get_snapshot), but the pdf would be an image, not text.

Another approach would be to use the print function in WebkitView and automatically select the right printer (Print to file).

Any other ideas?

Can't compile in Fedora 21

Hello, when I try to compile your awesome piece of art in Fedora 21, I get the following Error:

cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=/usr ../MarkMyWords/
-- The C compiler identification is GNU 4.9.2
-- The CXX compiler identification is unknown
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
CMake Error at CMakeLists.txt:1 (project):
  No CMAKE_CXX_COMPILER could be found.

  Tell CMake where to find the compiler by setting either the environment
  variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path
  to the compiler, or to the compiler name if it is in the PATH.


-- Configuring incomplete, errors occurred!

Thank you very much!

Change Icons in Gnome 3

Hey, at the moment the icons in the headerbar under Fedora 21 with Gnome-Shell look kind of odd.

Image of MMW

Now I don't know if this is intended behaviour, but to me I would change the Icons to fit the Gnome-Shell.
Here is an example of gedit in Gnome:

Image of gedit

Getting Error while cmake

this is my shell show
cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=/usr ../
-- checking for one of the modules 'webkit2gtk-4.0;webkit2gtk-3.0'
CMake Error at /usr/share/cmake-2.8/Modules/FindPkgConfig.cmake:367 (message):
None of the required 'webkit2gtk-4.0;webkit2gtk-3.0' found
Call Stack (most recent call first):
CMakeLists.txt:34 (pkg_search_module)

-- Found Vala: /usr/bin/valac
-- checking for a minimum Vala version of 0.26.0
-- found Vala, version 0.28.1
-- GSettings schemas will be installed locally.
-- GSettings shemas will be compiled.
-- GSettings schemas will be installed into /usr/share/glib-2.0/schemas/
-- Configuring incomplete, errors occurred!
See also "/home/sarath/Documents/Github/MarkMyWords/build/CMakeFiles/CMakeOutput.log".
sarath@matrix:/Documents/Github/MarkMyWords/build$ vim CmakeOutput.log
sarath@matrix:
/Documents/Github/MarkMyWords/build$ make
make: *** No targets specified and no makefile found. Stop.

No default stylesheet when installed

Selecting Default stylesheet in settings doesn't work: there is no stylesheet applied. Maybe a wrong stylesheet path. Only occurs with system-wide installations with ppa.

A search feature could be useful

Same as title. The file I'm writing is becoming quite long, and somethimes I can't remember where I said something
edit: I'm pressing CTRL-F in vain XD

Don't use the stock Scratch icon

First of all, awesome app! :) But you should really avoid using the default Scratch icon on your app. By just looking at the icons, it can be confusing to distinguish you app from the default text editor in elementary.

Support tabs / MDI

Would be handy to be able to have multiple Markdown files open in one window.

make install

make: *** No rule to build target « install ». Stop.

Feature: Tabbed File Editing - Multiple Files

Please add this in the future, I use this to manage notes for myself and projects on the fly. Hate having to have multiple windows open for different files.

Basically the same as any web browser or the Scratch editor included with Elementary OS.

Thanks in advance.

Installation from PPA not working

OS: elementary Loki

I've added the PPA ppa:voldyman/markmywords with the command apt-add-repository ppa:voldyman/markmywords. An apt update show this error message:

E: The repository 'http://ppa.launchpad.net/voldyman/markmywords/ubuntu xenial Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

Installation of the package mark-my-words is not possible without further tweaking.

Don't auto scroll to start

When I edit the text, i find the preview automatically going up to the start of the document, so that I cannot see the preview of what I am writing.

Can't Delete Lines from End-of-file

  • Steps to Reproduce
    • Open up a fair sized markdown file.
    • Go to the end of the file.
    • Select and delete a number of line from the end of the file.
    • Hit ctrl-S to save
  • Expected behavior
    • File saves and appearance in the program remains the same.
  • Observed behavior
    • The deleted lines reappear.

Handling of Missing Icons?

Looks like when an icon is not available (not sure why it wouldn't be on my system?) it's attempts to use it anyways? I see a missing image icon where the prefs button should be and this is printed to the shell:

(mark-my-words:23747): Gtk-CRITICAL **: gtk_image_set_from_icon_name: assertion 'GTK_IS_IMAGE (image)' failed

(mark-my-words:23747): Gtk-CRITICAL **: gtk_tool_button_set_icon_name: assertion 'GTK_IS_TOOL_BUTTON (button)' failed

** (mark-my-words:23747): WARNING **: FileHandler.vala:26: Cannot read "": Operation not supported

[Feature] File browser

If MarkMyWords could have a filesystem tree browser it would be super awesome! A use case would be maintain own knowledge base (note-taking software, docs, static site source editing and etc...).

Build Error in Fedora 21

Hello,
I get the following build error with the newest version:

[username@localhost build]$ make
Scanning dependencies of target discount
[  4%] Performing configure step for 'discount'
Configuring for [markdown]
Looking for cpp (/lib/cpp) ok
looking for install (/usr/bin/install)
checking the C compiler (cc) ok
looking for ar (/usr/bin/ar)
looking for ranlib (/usr/bin/ranlib)
checking for "volatile" keyword (found)
checking for "const" keyword (found)
Checking for "inline" keyword (found)
defining WORD & DWORD scalar types
looking for a reentrant basename (found)
looking for header libgen.h (found)
looking for header pwd.h (found)
looking for the getpwuid function (found)
looking for the srandom function (found)
looking for the bzero function (found)
looking for the random function (found)
looking for the strcasecmp function (found)
looking for the strncasecmp function (found)
looking for the fchdir function (found)
looking for header malloc.h (found)
looking for find (/usr/bin/find)
looking for "ln -s" (/usr/bin/ln)
looking for ar (/usr/bin/ar)
looking for ranlib (/usr/bin/ranlib)
looking for sed (/usr/bin/sed)
generating Makefile
generating version.c
generating mkdio.h
[  8%] Performing build step for 'discount'
a - mkdio.o
a - markdown.o
a - dumptree.o
a - generate.o
a - resource.o
a - docheader.o
a - version.o
a - toc.o
a - css.o
a - xml.o
a - Csio.o
a - xmlpage.o
a - basename.o
a - emmatch.o
a - github_flavoured.o
a - setup.o
a - tags.o
a - html5.o
a - flags.o
[ 12%] Performing install step for 'discount'
[ 16%] Completed 'discount'
[ 32%] Built target discount
[ 36%] Generating src/mark-my-words-resources.c
can't write to file /home/username/Downloads/build/src/mark-my-words-resources.cCMakeFiles/mark-my-words.dir/build.make:96: recipe for target 'src/mark-my-words-resources.c' failed
make[2]: *** [src/mark-my-words-resources.c] Error 1
CMakeFiles/Makefile2:95: recipe for target 'CMakeFiles/mark-my-words.dir/all' failed
make[1]: *** [CMakeFiles/mark-my-words.dir/all] Error 2
Makefile:117: recipe fo

Incorrect syntax highlighting in editor window

Words with underline in the middle of them (e.g. filenames) are being half bold-ed. But only in the editor window, not in the preview window. I believe the preview window is correct, and you should only be making words bold if there is whitespace before the "_". (pandoc and the "Remarkable" editor behave the same way as your preview window, however RStudio behaves the same way as your editor window.)

BTW, I think a way to switch off syntax highlighting in the editor window might be useful: I don't mind it (when its correct!), but if I'm using a two-pane editor with live preview, it is not essential.

Last Known State saving

This coupled with #75 would be all I ever need :).

Closing it then reopening back to the same doc I left would be ideal.

Cursor goes to the end automatically

I'm sorry that I countinously post bug report.. but this is quite unpleasant.
When I'm writing, sometime my cursor move from the current position to the ent of the document.
Edit: both with auto save enabled and not.

[Feature] Auto insert tabs after a <CR>

Hi,

When you are writing nested lists like this :

* thing
    * thingy thing
    * other thing

It would be handy to automatically keep the correct number of tabs, imagine you have a long nested list and you have to rewrite 3 tabs every line.

My 2 cents, great tool otherwise.

No obvious option to "save as (new file name)"

While a new file can be saved correctly, it seems impossible to "save as" a document which already has a file name, clicking the save button seems to do nothing (except saving under the same file name, of course).

Link to local image

Hi, I'm unable to link to a local image (both with absolute or relative path).
Is this possible?/Will it be?
(I'm work-arounding this using lighttpd and pointing to localhost, but it was simplier to just link to file:// or just ./)
Thanks, Nicolò

Open File and Save toolbar buttons look inactive

The above mentioned toolbar buttons are greyed out / faded even when they are perfectly usable.

For Open File this seems to happen after clicking and opening a file; I can't reproduce this reliably for Save.

Solarized themes appear twice

Hi @voldyman and others,

What a great and simple Markdown editor you created!

I just noticed a small bug:

image

The solarized themes should not appear twice, should net?

Thankfully,

Robert

Ask for save altought no modification are made

When I open a saved file, and then press immediately "close", it asks me for saving changes. It happens somethime even right after the save button pressed, so, I always fear the changes had not been saved.

Support for encryption?

Would love support for encryption. Once encrypted, we can always back it up on Dropbox/Drive/OneDrive.

Export working bad

Hi, I am not able to export my text to pdf (a 0 byte file get created), nor to print it.
Another thing that happen, is the wrong html encoding (apostophed letters like òàèù are shown like: è)
Thanks, Nicolò
Edit: I'm on elementary OS

l10n

Add translations.

I can translate to French.

Package contains `mktags` x86_64 executable file

The file deps/discount/mktags is a x86_64 executable. Attempts to build the package on other architectures therefore fail.

The source file mktags.c is there so why include an executable. Why not just build it along with everything else ?

(cd deps/discount; gcc -o mktags mktags.c)

pdf export fails

When trying a pdf export I get a pdf file with a size of 0 bytes.
Having the program run from terminal doesn't give any suggestion of the reason of the failure.

support for old GTK+ version

On Ubuntu 14.04 :

(mark-my-words:19654): Gtk-ERROR **: failed to add UI: <resource>/com/voldyman/markmywords/ui/headerbar.ui: required gtk+ version 3.12, current version is 3.10

GtkDialog mapped without a transient parent.

When clicking on About, I get this in the terminal:

Gtk-Message: GtkDialog mapped without a transient parent. This is discouraged.

Not very important, but it would be better to fix it!

YAML Support

Can you add yaml support for Jekyll blog users. So we can write our blog posts with this app. Thanks. :)

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.