2.0.0 • Published 3 years ago

atom-set-text v2.0.0

Weekly downloads
3
License
MIT
Repository
github
Last release
3 years ago

atom-set-text Build Status

A better Atom TextEditor#setText() that preserves cursor/scroll position and selections

Install

$ npm install --save atom-set-text

Usage

/** @babel */
import setText from 'atom-set-text';

setText('new text');

API

setText(text, editor)

text

Type: string

Text you want to set in the editor.

editor

Default: atom.workspace.getActiveTextEditor()

Editor to set the text in.

License

MIT © Sindre Sorhus

2.0.0

3 years ago

1.1.2

7 years ago

1.1.1

8 years ago

1.1.0

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago

0.1.0

8 years ago