Local file history for detected files
Hi!
Is it possible to get Local History to work for detected file types, as these otherwise have no file type. (local history only works with detected file types).
Not sure why this happens, but as Bash Support Pro can detect zsh #compdef files, it should in theory then be possible for Local History to work in these files. 🤷
Would be amazing if JetBrains supported directory level file type detection, e.g for zsh completions :-).
Is it possible to get Local History to work for detected file types, as these otherwise have no file type. (local history only works with detected file types).
That interesting! I didn't know that local history is disabled in this case. I'll investigate if there's a way to override this, perhaps.
Not sure why this happens, but as Bash Support Pro can detect zsh
#compdeffiles, it should in theory then be possible for Local History to work in these files. 🤷
Even though detection uses an extension provided by the SDK, the SDK still seems to turn off local file history.
Would be amazing if JetBrains supported directory level file type detection, e.g for zsh completions :-).
Could you provide an example for this use-case? Even though the SDK doesn't support this out-of-the-box, it may be possible to support in BashSupport Pro.
Bash support pro understands those files, because they have compdef. This was more around JB.
For example, I have completions or functions under a path, all file types for those should be Bash. But that should not be in this plugin, probably :).
Unless it's a directory name very commonly used by Zsh/Bash, then it's probably better if the user could configure this. But a plugin should be able to implement this, but file type detection is a tricky part of the IDE's SDK.
Regarding the problem with the local history, I can confirm that it's happening but at this time it appears that the SDK is enforcing. I've asked on the JetBrains developers forum for help to make this work. (My guess is that it's like this for years and nobody noticed).
Unfortunately, JetBrains said that it's a bug and that plugins are unable to fix it. I've reported this at https://youtrack.jetbrains.com/issue/IJPL-177645
Local history would be enabled as soon as there's a file-type association by file name or extension, but that's mostly useless for files with a shebang...