{"id":6743,"date":"2017-11-13T14:45:00","date_gmt":"2017-11-13T19:45:00","guid":{"rendered":"http:\/\/irreal.org\/blog\/?p=6743"},"modified":"2017-11-13T14:45:42","modified_gmt":"2017-11-13T19:45:42","slug":"a-small-swiper-trick","status":"publish","type":"post","link":"https:\/\/irreal.org\/blog\/?p=6743","title":{"rendered":"A Small Swiper Trick"},"content":{"rendered":"<p> Over at the Emacs reddit,  g00eykabl00ey shares <a href=\"https:\/\/www.reddit.com\/r\/emacs\/comments\/7c4bix\/tiny_swiper_feature_that_you_may_not_have_noticed\/\">a &ldquo;swiper trick.&rdquo;<\/a> He gives an example of the trick where he wants to check the spelling of &ldquo;Dostoyevsky,&rdquo; which appears elsewhere in the buffer. To find the previous use\u2014and its correct spelling\u2014he starts a Swiper search with &ldquo;dos.&rdquo; That will bring up every occurrence of &ldquo;dos&rdquo; in the minibuffer. You can move up in down in the minibuffer (scrolling if necessary) and as each line is highlighted, the buffer being searched scrolls to that instance of the search term. If you type <kbd>Return<\/kbd>, the point is moved to the instance that is highlighted in the minibuffer. But if you quit Swiper (with <kbd>Ctrl<\/kbd>+<kbd>g<\/kbd>, say) the buffer is unchanged but you&rsquo;ve seen the correct spelling. Notice that this same trick is useful anytime you want to see some term in context, a variable definition say. <\/p>\n<p> I would have thought that this was pretty obvious but judging from the comments maybe not. I don&rsquo;t keep track but I wouldn&rsquo;t be surprised if half of my uses of Swiper are like this. I quit out of it as often as I complete the search by moving to the target. Tricks like this are why I say that Swiper and the associated Ivy library are my most useful package. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>Over at the Emacs reddit, g00eykabl00ey shares a &ldquo;swiper trick.&rdquo; He gives an example of the trick where he wants to check the spelling of &ldquo;Dostoyevsky,&rdquo; which appears elsewhere in the buffer. To find the previous use\u2014and its correct spelling\u2014he &hellip; <a href=\"https:\/\/irreal.org\/blog\/?p=6743\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[18],"class_list":["post-6743","post","type-post","status-publish","format-standard","hentry","category-general","tag-emacs"],"_links":{"self":[{"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/6743","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=6743"}],"version-history":[{"count":1,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/6743\/revisions"}],"predecessor-version":[{"id":6744,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/6743\/revisions\/6744"}],"wp:attachment":[{"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=6743"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=6743"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=6743"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}