mirror of
https://github.com/atom/atom.git
synced 2026-02-18 02:21:43 -05:00
Add startRow and endRow special attributes to TextBuffer.findMarker[s]
This commit is contained in:
@@ -434,6 +434,11 @@ class Buffer
|
||||
|
||||
# Public: Finds all markers satisfying the given attributes
|
||||
#
|
||||
# attributes - The attributes against which to compare the markers' attributes
|
||||
# There are some reserved keys that match against derived marker properties:
|
||||
# startRow - The row at which the marker starts
|
||||
# endRow - The row at which the marker ends
|
||||
#
|
||||
# Returns an {Array} of {String} marker-identifiers
|
||||
findMarkers: (attributes) ->
|
||||
markers = @getMarkers().filter (marker) -> marker.matchesAttributes(attributes)
|
||||
|
||||
Reference in New Issue
Block a user