Skip to content

urbint/evil-text-objects-javascript

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

Javascript Text Objects

This package defines text objects that should make your Javascript development experience even more enjoyable.

This package has text objects defined for:

functions

single-line comments

multi-line comments

Known limitations

Each of these text objects is cobbled together using rudimentary regular expressions and Evil movement commands. As such, there are a few limitations that are known. We hope to address each of these and eventually add test coverage to prevent regressions and support TDD, which would be immensely helpful during the implementation phase.

multi-line comments

// this is supported
/**
 * Comment content
 * goes here
 */

// this is not
/** Comment content goes here */

Install

(quelpa '(evil-text-objects-javascript
          :fetcher github
          :repo "urbint/evil-text-objects-javascript"))

Configuration

Vanilla Elisp

(require 'evil-text-objects-javascript)
(add-hook 'rjsx-mode-hook #'evil-text-objects-javascript/install)

Keybindings

The following keybindings are assigned. Configuration may be provided in the future to support overwrites to reflect personal preferences. Please open an issue if you have a compelling reason this should be supported.

“f” - function

“c” - single-line comment

“C” - multi-line comment

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published