diff options
| author | Ben Beltran <ben@nsovocal.com> | 2019-03-14 23:19:58 +0100 |
|---|---|---|
| committer | Ben Beltran <ben@nsovocal.com> | 2019-03-14 23:19:58 +0100 |
| commit | b009b50e81b6c1d0d691505b5f5c0418f559bfc0 (patch) | |
| tree | 5fae800e76219eba28634cb236565f9b4bb7a2f7 /atom/packages/vim-mode/lib/prefixes.coffee | |
| parent | 4efcafab7f0aa454f9ebe767133654bc9f44e12c (diff) | |
Remove Atom config
Diffstat (limited to 'atom/packages/vim-mode/lib/prefixes.coffee')
| -rw-r--r-- | atom/packages/vim-mode/lib/prefixes.coffee | 68 |
1 files changed, 0 insertions, 68 deletions
diff --git a/atom/packages/vim-mode/lib/prefixes.coffee b/atom/packages/vim-mode/lib/prefixes.coffee deleted file mode 100644 index c910963..0000000 --- a/atom/packages/vim-mode/lib/prefixes.coffee +++ /dev/null @@ -1,68 +0,0 @@ -class Prefix - complete: null - composedObject: null - - isComplete: -> @complete - - isRecordable: -> @composedObject.isRecordable() - - # Public: Marks this as complete upon receiving an object to compose with. - # - # composedObject - The next motion or operator. - # - # Returns nothing. - compose: (@composedObject) -> - @complete = true - - # Public: Executes the composed operator or motion. - # - # Returns nothing. - execute: -> - @composedObject.execute?(@count) - - # Public: Selects using the composed motion. - # - # Returns an array of booleans representing whether each selections' success. - select: -> - @composedObject.select?(@count) - - isLinewise: -> - @composedObject.isLinewise?() - -# -# Used to track the number of times either a motion or operator should -# be repeated. -# -class Repeat extends Prefix - count: null - - # count - The initial digit of the repeat sequence. - constructor: (@count) -> @complete = false - - # Public: Adds an additional digit to this repeat sequence. - # - # digit - A single digit, 0-9. - # - # Returns nothing. - addDigit: (digit) -> - @count = @count * 10 + digit - -# -# Used to track which register the following operator should operate on. -# -class Register extends Prefix - name: null - - # name - The single character name of the desired register - constructor: (@name) -> @complete = false - - # Public: Marks as complete and sets the operator's register if it accepts it. - # - # composedOperator - The operator this register pertains to. - # - # Returns nothing. - compose: (composedObject) -> - super(composedObject) - composedObject.register = @name if composedObject.register? - -module.exports = {Repeat, Register} |