Hello,
My end goal is that I want to tell textmate to ignore some directories (or include) when finding files using “Open Quickly”
I skimmed the source code and saw that I might be able to use some kind of settings:
static std::map<std::string, NSString*> const map = { { kSettingsExcludeDirectoriesInFileChooserKey, kSearchExcludeDirectoryGlobsKey }, { kSettingsExcludeDirectoriesKey, kSearchExcludeDirectoryGlobsKey }, { kSettingsExcludeFilesInFileChooserKey, kSearchExcludeFileGlobsKey }, { kSettingsExcludeFilesKey, kSearchExcludeFileGlobsKey }, { kSettingsExcludeInFileChooserKey, kSearchExcludeGlobsKey }, { kSettingsExcludeKey, kSearchExcludeGlobsKey }, { kSettingsBinaryKey, kSearchExcludeGlobsKey }, { kSettingsIncludeDirectoriesKey, kSearchDirectoryGlobsKey }, { kSettingsIncludeFilesInFileChooserKey, kSearchFileGlobsKey }, { kSettingsIncludeFilesKey, kSearchFileGlobsKey }, { kSettingsIncludeInFileChooserKey, kSearchGlobsKey }, { kSettingsIncludeKey, kSearchGlobsKey }, };
However, I don’t know where I would set these. I believe there may me some kind of file I can place at my project root to define these, but I’m unable to determine what the name of this file should be or the format of the file.
Any help would be appreciated.
Thanks!
That would be a `.tm_properties` file; https://macromates.com/blog/2011/git-style-configuration/
On Fri, 29 Mar 2019 at 15:40, Kyle Kirbatski kyle.kirby@me.com wrote:
Hello,
My end goal is that I want to tell textmate to ignore some directories (or include) when finding files using “Open Quickly”
I skimmed the source code and saw that I might be able to use some kind of settings:
static std::map<std::string, NSString*> const map = { { kSettingsExcludeDirectoriesInFileChooserKey, kSearchExcludeDirectoryGlobsKey }, { kSettingsExcludeDirectoriesKey, kSearchExcludeDirectoryGlobsKey }, { kSettingsExcludeFilesInFileChooserKey, kSearchExcludeFileGlobsKey }, { kSettingsExcludeFilesKey, kSearchExcludeFileGlobsKey }, { kSettingsExcludeInFileChooserKey, kSearchExcludeGlobsKey }, { kSettingsExcludeKey, kSearchExcludeGlobsKey }, { kSettingsBinaryKey, kSearchExcludeGlobsKey }, { kSettingsIncludeDirectoriesKey, kSearchDirectoryGlobsKey }, { kSettingsIncludeFilesInFileChooserKey, kSearchFileGlobsKey }, { kSettingsIncludeFilesKey, kSearchFileGlobsKey }, { kSettingsIncludeInFileChooserKey, kSearchGlobsKey }, { kSettingsIncludeKey, kSearchGlobsKey }, };
However, I don’t know where I would set these. I believe there may me some kind of file I can place at my project root to define these, but I’m unable to determine what the name of this file should be or the format of the file.
Any help would be appreciated.
Thanks!
textmate mailing list textmate@lists.macromates.com https://lists.macromates.com/listinfo/textmate
Wow. That’s awesome. How would I go about specifying the paths for the directories? Can I specify a relative path? Is the exclude/include for a single directory and not their children (or vise-versa?)
Here is an example of what I’m trying to do:
excludeDirectories = "{node_modules,cordova/plugin/cordova-plugin-gmr-nowpik-native/lib/*}" includeDirectories = "{cordova/plugin/cordova-plugin-gmr-nowpik-native/lib/openframeworks/libs/openFrameworks}”
Thanks!
On Mar 29, 2019, at 9:43 AM, Koen Punt koen@koenpunt.nl wrote:
That would be a `.tm_properties` file; https://macromates.com/blog/2011/git-style-configuration/ https://macromates.com/blog/2011/git-style-configuration/ On Fri, 29 Mar 2019 at 15:40, Kyle Kirbatski <kyle.kirby@me.com mailto:kyle.kirby@me.com> wrote: Hello,
My end goal is that I want to tell textmate to ignore some directories (or include) when finding files using “Open Quickly”
I skimmed the source code and saw that I might be able to use some kind of settings:
static std::map<std::string, NSString*> const map = { { kSettingsExcludeDirectoriesInFileChooserKey, kSearchExcludeDirectoryGlobsKey }, { kSettingsExcludeDirectoriesKey, kSearchExcludeDirectoryGlobsKey }, { kSettingsExcludeFilesInFileChooserKey, kSearchExcludeFileGlobsKey }, { kSettingsExcludeFilesKey, kSearchExcludeFileGlobsKey }, { kSettingsExcludeInFileChooserKey, kSearchExcludeGlobsKey }, { kSettingsExcludeKey, kSearchExcludeGlobsKey }, { kSettingsBinaryKey, kSearchExcludeGlobsKey }, { kSettingsIncludeDirectoriesKey, kSearchDirectoryGlobsKey }, { kSettingsIncludeFilesInFileChooserKey, kSearchFileGlobsKey }, { kSettingsIncludeFilesKey, kSearchFileGlobsKey }, { kSettingsIncludeInFileChooserKey, kSearchGlobsKey }, { kSettingsIncludeKey, kSearchGlobsKey }, };
However, I don’t know where I would set these. I believe there may me some kind of file I can place at my project root to define these, but I’m unable to determine what the name of this file should be or the format of the file.
Any help would be appreciated.
Thanks!
textmate mailing list textmate@lists.macromates.com mailto:textmate@lists.macromates.com https://lists.macromates.com/listinfo/textmate https://lists.macromates.com/listinfo/textmate _______________________________________________ textmate mailing list textmate@lists.macromates.com https://lists.macromates.com/listinfo/textmate