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

Comments

@PEZ
Copy link
Collaborator

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 this to Backlog in CT 2019 Q3 via automation Aug 12, 2019

@kstehn kstehn closed this 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
Projects
2 participants
You can’t perform that action at this time.