Skip to content

Express functionality with operators and movements/text objects #5

Description

@jjaderberg

Create one or more opfunc functions that conjure AsciiDoc. Not sure if all operations can be expressed this way, possibly they can. Any progress along this route will in any case make the plugin much more powerful and much less verbose.

In connection, express interesting chunks as objects or motions. This is done already for sections, but there is a large potential for improvement here.

This is a long running target. Here are some attractive operations to wet the appetite:

  • Turn motion from cursor to end of next paragraph into their own section. Section title added at depth parallel to current section, with cursor in insert mode ready to reduce/increase depth and add a title.
  • Turn a listing block into a verse block.
  • Turn motion from cursor backward two blocks into an admonition block.
  • Turn a sentence into a block of some kind (while editing someone else's source, obviously, because we keep one sentence per line so this is already possible).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions