Giter VIP home page Giter VIP logo

flymake-grammarly's Introduction

License: GPL v3 JCS-ELPA

send-to-osx-grammarly.el

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

CI

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)

🛠️ Contribute

PRs Welcome Elisp styleguide Donate on paypal Become a patron

If you would like to contribute to this project, you may either clone and make pull requests to this repository. Or you can clone the project and establish your own branch of this tool. Any methods are welcome!

🔬 Development

To run the test locally, you will need the following tools:

Install all dependencies and development dependencies:

$ eask install-deps --dev

To test the package's installation:

$ eask package
$ eask install

To test compilation:

$ eask compile

🪧 The following steps are optional, but we recommend you follow these lint results!

The built-in checkdoc linter:

$ eask lint checkdoc

The standard package linter:

$ eask lint package

📝 P.S. For more information, find the Eask manual at https://emacs-eask.github.io/.

⚜️ License

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/.

See LICENSE for details.

flymake-grammarly's People

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

Watchers

 avatar  avatar  avatar

flymake-grammarly's Issues

Send only the local paragraph to Grammarly to speed things up

If I understand correctly, the complete buffer is sent to Grammarly which can be slow when the document is long. If there was a way to only check the local paragraph while typing that would be great. In addition, there should perhaps also be a way to request checking of the whole document. I have to say that I'm not familiar with flymake at all, so I don't know how to best implement any of that.

Make narrowed buffers work

Narrowing a buffer (e.g. C-x n s in org-mode) makes flymake-grammarly show its highlights in incorrect places.

flymake-grammarly makes the emacs daemon hang during the startup

I use GNU Emacs 28.2

A minimal init file init-debug.el to reproduce the bug:

(add-to-list 'load-path "/home/algor/.config/emacs/straight/build/flymake-grammarly")
(add-to-list 'load-path "/home/algor/.config/emacs/straight/build/grammarly")
(add-to-list 'load-path "/home/algor/.config/emacs/straight/build/request")
(add-to-list 'load-path "/home/algor/.config/emacs/straight/build/websocket")
(require 'flymake-grammarly)
(add-hook 'text-mode-hook 'flymake-grammarly-load)

Running /bin/emacs -q -l ~/.config/emacs/init-debug.el --bg-daemon the startup freezes, daemon doesn't start.

does not work on some files

I have flymake-grammarly working on a small text file. However, on a larger file, it does not. There are no errors in the log buffer.
I can have Reporting backends: flymake-grammarly--checker. How can I fix/diagnose this?

How to use?

This looks really useful but I'm not sure how to use it. I installed it as as explained but when I'm offline I get an error message after (flymake-grammarly-load):

[error] request--callback: peculiar error

When I'm online, nothing happens even when I place point on a sentence like "She go there". I'm probably missing something.

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.