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

Add missing builtin commands #280

Merged
merged 3 commits into from
Feb 26, 2020

Conversation

deathaxe
Copy link
Member

@deathaxe deathaxe commented Feb 22, 2020

Closes #268

This PR contains two commits:

The first one adds globally used buitin commands, which are not yet part of the commands_meta_data.

The second proposes to add commands which are used in the find/replace panels only. Not sure whether they should be added or not.

Copy link
Member

@FichteFoll FichteFoll left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a bunch. Completeness is nice, so adding the find commands is definitely preferred over omitting them. Using a different command type to document this should work out nicely as well. I verified that the code handles this properly.

I'm a bit unsure on some of the added added metadata here because I seem to remember those having existed earlier, but that might just be me misremembering and I don't have the tools at hand to quickly verify either.

There are definitely ways to automatically find out which commands have been added when, as long as they are referenced in the Default package somewhere, but this will be something for the future.

show_message: false
command_type: text
doc_string: Guess indentation settings from the text content.
added: 4050
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hm, the command existed before but as a Python implementation. We don't interpret the added data embedded into this document yet, but maybe we should to prevent duplicates.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are also some functions which have been removed, like insert_best_completions. There are only few of them, but maybe should mark those as removed in the same way?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Imo, yes. My hope is that we can use this one location for the command metadata both for PD and some documentation, e.g. the unofficial ones. Not currently, of course, but it makes sense to add such metadata when you notice it or know about it instead of trying to fill back the gaps later.

@FichteFoll FichteFoll merged commit ef42642 into SublimeText:master Feb 26, 2020
@FichteFoll FichteFoll added this to the 3.2.16 milestone Feb 26, 2020
@deathaxe deathaxe deleted the pr/add-builtin-commands branch February 26, 2020 19:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

A list of missing built-in commands.
2 participants