I noticed that the LaTeX bundle provides the same shortcut for two different commands:
BibDesk Completion Insert Label From Document
Both are mapped to ⌥⎋. Is this a bug or a feature?
Trevor
On Jan 26, 2006, at 6:12 PM, Trevor Harmon wrote:
I noticed that the LaTeX bundle provides the same shortcut for two different commands:
BibDesk Completion Insert Label From Document
Both are mapped to ⌥⎋. Is this a bug or a feature?
It is a feature, because the idea is that they have different scope, so they would never appear at the same time. The scope for the label command is meta.ref-or-label, while the scope for the BibDesk completion should be meta.cite.latex. For some reason it is not right now, I think it should be changed.
Trevor
Haris
On Jan 26, 2006, at 4:22 PM, Charilaos Skiadas wrote:
It is a feature, because the idea is that they have different scope, so they would never appear at the same time. The scope for the label command is meta.ref-or-label
There must be some kind of scoping bug then, because if I type "\ref {}" and put my cursor between the braces, then hit ⌥⎋, the BibDesk Completion runs. Are you seeing different behavior?
Trevor
On Jan 26, 2006, at 7:10 PM, Trevor Harmon wrote:
On Jan 26, 2006, at 4:22 PM, Charilaos Skiadas wrote:
It is a feature, because the idea is that they have different scope, so they would never appear at the same time. The scope for the label command is meta.ref-or-label
There must be some kind of scoping bug then, because if I type "\ref {}" and put my cursor between the braces, then hit ⌥⎋, the BibDesk Completion runs. Are you seeing different behavior?
It works fine over here. Did you change the BibDesk Completion scope to be meta.cite.latex? If so, to make sure, restart textmate and then try. Also you can find the current scope by pressing ctrl-shift-p.
Trevor
Haris
On Jan 26, 2006, at 5:21 PM, Charilaos Skiadas wrote:
It works fine over here. Did you change the BibDesk Completion scope to be meta.cite.latex?
No, I didn't. It was set to text.latex. And the Insert Label From Document command's scope was set to declaration.ref-or-label.
After changing the BibDesk scope to meta.cite.latex and the Insert Label scope to meta.ref-or-label.latex, the ⌥⎋ command is now working perfectly.
But why is this necessary? Shouldn't the bundle ship with the proper scopes already set?
Trevor
On Jan 27, 2006, at 12:30 AM, Trevor Harmon wrote:
But why is this necessary? Shouldn't the bundle ship with the proper scopes already set?
well sure it should ship with proper scopes set :) It's just that no- one noticed the error until now. The current version in the repository has this fixed. The bundle is being maintained by volunteers, so there are lots of details like those that come up during testing by users. Your feedback helps up make it better (for instance fixed this scope problem).
Trevor
Haris