Giter Site home page Giter Site logo

ninrod / exato Goto Github PK

View Code? Open in Web Editor NEW
17.0 4.0 1.0 55 KB

:bookmark: EXATO: Evil XML Attributes Text Object

License: Other

Makefile 3.85% Emacs Lisp 85.09% HTML 10.19% JavaScript 0.87%
emacs evil evil-mode vim emacs-lisp emacs-configuration textobj keybinds

exato's Introduction

EXATO: Evil XML Attributes Text Object

https://travis-ci.org/ninrod/exato.svg?branch=master https://melpa.org/packages/exato-badge.svg https://stable.melpa.org/packages/exato-badge.svg https://img.shields.io/badge/license-GPLv3-blue.svg

https://www.w3schools.in/wp-content/uploads/2014/07/HTML-attribute.jpg

Installation

Just use MELPA. Here’s an oneliner using use-package:

(use-package exato :ensure t)

Usage

This package provides the x text object to manipulate html/xml tag attributes. You can customize the binding.

Try using dax, vix and gUix.

Examples

cursor on []

  • Issuing dax inside:
<a href="index.html" class="btn btn-primary [f]oo bar buz">link</a>

Results in:

<a href="index.html">link</a>

Customization

Exato binds the x key for you by default. You can change this with the exato-key variable:

;; this will bind the `h` text object: so dah, dih, etc... will work instead of dax, dix...
(use-package exato
  :ensure t
  :init
  (setq exato-key "h"))

Credits

This package is inspired in Andrea Leopardi’s vim-textobj-xmlattr plugin.

LICENSE

GNU General Public License v3
Copyright (c) 2017-2021 Filipe Silva (ninrod)

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.