<?xml version="1.0"?>
<Denemo>
  <merge>
    <title>A Denemo Keymap</title>
    <author>AT, JRR, RTS</author>
    <map>
      <row>
        <action>SearchBookmark</action>
        <scheme>;;;Find Bookmark by Nils Gey
(define user-input (string-downcase (d-GetUserInput "Find Bookmark" "What are you after? Case insensitive" "X")))
(if user-input   ;in case the user pressed Escape do nothing
 (begin
  (let searchBookmarkWithStringReturn((EndOfStaffSwitch #f))
  (if (d-MoveCursorRight)
	(if (and (string? (d-DirectiveGet-standalone-display "Bookmark" user-input)) (string-ci=? (d-DirectiveGet-standalone-display "Bookmark" user-input) user-input))
	 #t
	 (searchBookmarkWithStringReturn EndOfStaffSwitch)
	)

  ;CursorRight #f:
   (if EndOfStaffSwitch
    #f
    (begin (d-MoveToBeginning)(searchBookmarkWithStringReturn #t))
)))))
</scheme>
        <label>Search Bookmark</label>
        <tooltip>Searches for a named Bookmark in the current staff.</tooltip>
      </row>
    </map>
  </merge>
</Denemo>
