Giter Club home page Giter Club logo

emacs-grammarly's Introduction

send-to-osx-grammarly.el

simple plugin to send text to/from Grammarly [OSX]

Grammarly has to be opened and a new document has to be opened.

Install Grammarly App (OSX version in this case) https://www.grammarly.com/native/mac

The plugin is using Apple Scripts, thus works only on macOS.

This is a proof of concept. Feel free to send pull requests or fork it.

Read more at https://www.reddit.com/r/emacs/comments/6x0ezx/emacs_grammarly_a_simple_plugin/

Install

Insert this code into your .emacs:

;; load el file in your .emacs, e.g.
(load-file "~/.emacs.d/plugins/send-to-osx-grammarly/send-to-osx-grammarly.el")

in the plugin code set path to pull and push script, for me this is:

(call-process-shell-command "osascript ~/.emacs.d/plugins/send-to-osx-grammarly/pull.scpt")

and allow Emacs to use Accessibility (for Apple Scripts):

Keybinding

You can bind key using the following snippets.

(define-key global-map (kbd "C-c C-g h") #'send-to-osx-grammarly-push)
(define-key global-map (kbd "C-c C-g l") #'send-to-osx-grammarly-pull)

emacs-grammarly's People

Contributors

jcs090218 avatar larstvei avatar mmagnus 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

emacs-grammarly's Issues

Can't find this document

Is emacs-grammarly broken because of changes in the Grammarly app? I am on Grammarly 1.5.64 and when I run grammarly-save-region-and-run on a region, Grammarly opens but shows me the error message 'Can't find this document'.

Unfill paragraph before sending it to Grammarly

Hi (again)!

A problem I frequently have with Grammarly is that it complains about where I put my newlines (which are reasonably placed for plain text documents, LaTeX or Org). My solution is generally to delete the newlines in a paragraph before sending it to Grammarly (and undo them directly after).

It could easily be automated, using something like unfill-region before sending it to Grammarly. Would you consider this a sane default? If so, let me know, and I'll send a PR!

Use temporary files

Hi, and thanks for uploading this!

I love the idea of this package, but it should be generalized a bit more. Having "/home/magnus/Desktop/Grammarly.txt" in the code does not seem ideal and should be set to more suitable default (maybe something like user-emacs-directory or default-directory). Also, the README should state that the user can customize by using setq rather than asking users to change the source code of your package (that would for instance cause updates to the package to break the user's customization).

As an alternative, I would suggest using a temporary file for each buffer as a default instead of overwriting the same file every time. This can be achieved without making assumptions about the user's system. I favor this approach, and let the user optionally specify a specific file that should be used for all buffers (i.e. let users opt-in to the current solution).

I'll send a pull request if you're open to the idea!

Maintain request?

@mmagnus Not sure if you received my email about pushing your package emacs-grammarly to Melpa?

I just created this organization emacs-grammarly and I would like to ask if you are willing to join and move your repository emacs-grammarly to the organization? So I can help you with your package and take some responsibility from your package (basically help maintain, quick fix, response issue and review PR, etc).

Of course, if you don't feel like it or having a trust issue. That's fine too! :)

Let me know what you think! Thank you!


BTW, thanks for merging #11! :D

Now you could submit it with the below recipe. (Make sure you have rename your repository to send-to-osx-grammarly)

(send-to-osx-grammarly :repo "mmagnus/send-to-osx-grammarly" :fetcher github :files (:defaults "scripts"))

Does this plugin support login to grammarly premium?

Hi, great work on the Grammarly emacs plugin. I am a premium user and I was wondering if this plugin can support logging into Grammarly to get the extra grammar checks? The README didn't mention anything about this.

Sending text data to grammarly online

Currently, it works locally by passing text to a desktop client. I would however much like to communicate with the Grammarly webpage. I put this text up here as an enhancement issue

Load file fails

I use the method (load-file "path/to/grammarly.el") but it says "can't find library for send-to-osx-grammarly". How to fix this?

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.