Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tabbing to next snippet field not working #278

Closed
PEZ opened this issue Aug 12, 2019 · 0 comments
Closed

Tabbing to next snippet field not working #278

PEZ opened this issue Aug 12, 2019 · 0 comments
Labels
bug Something isn't working good first issue Good for newcomers
Projects

Comments

@PEZ
Copy link
Collaborator

PEZ commented Aug 12, 2019

When entering code with the help of a snippet, you are supposed to be able yto tab your way through the various fields provided by the snippet. Like if I have this in my clojure.json for instance:

	"defn": {
		"prefix": "(defn",
		"body": [
			"(defn ${1:name}",
			"  \"Don't foget the docs!\"",
			"  [${2:args}]",
			"  $3"
		],
		"description": "(defn ...) function body",
	}

I should be able to tab to name, args, and then to the start of the function body.

However, in Calva the default key binding for tab is to format the current enclosing form. I think this is quite easily fixed by guarding for snippet mode in the when clause of that key binding.

@PEZ PEZ added bug Something isn't working good first issue Good for newcomers labels Aug 12, 2019
@PEZ PEZ added this to Backlog in CT 2019 Q3 via automation Aug 12, 2019
@kstehn kstehn closed this as completed Aug 12, 2019
@PEZ PEZ moved this from Backlog to Done in CT 2019 Q3 Aug 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
No open projects
CT 2019 Q3
  
Done
Development

No branches or pull requests

2 participants