emacs/var/elfeed/db/data/04/040c8ae97f02c2444a17d6dfa0f679912aa64f31
2022-01-03 12:49:32 -06:00

1 line
959 B
Plaintext

<!-- SC_OFF --><div class="md"><p>Hello, I have a snippet set like so:</p> <pre><code>import React from &#39;react&#39; const ${1:Component} = ( ${2:$$(yas-choose-value &#39;(&quot;\{ \}&quot; &quot;props&quot;))} ) =&gt; { return ( $0 ) } export default $1 </code></pre> <p>I have two questions:</p> <ul> <li>How do I have the cursor at $2 be between the <code>{ }</code>?</li> <li><code>yas-choose-value</code> prompts to choose a value but I can&#39;t use <code>Tab</code> to choose the second value. If I do, it disappears. I have to use the arrow key</li> </ul> </div><!-- SC_ON --> &#32; submitted by &#32; <a href="https://www.reddit.com/user/dash_o_truth"> /u/dash_o_truth </a> <br/> <span><a href="https://www.reddit.com/r/emacs/comments/rcyyii/yasnippets_how_do_i_move_the_cursor_back_after/">[link]</a></span> &#32; <span><a href="https://www.reddit.com/r/emacs/comments/rcyyii/yasnippets_how_do_i_move_the_cursor_back_after/">[comments]</a></span>