Replies: 1 comment 4 replies
-
|
Please continue to ask questions if you have them! Everyone can benefit :) I think the short answer is you ought to be able to edit Textadept's core/file_io.lua's Lines 362 to 365 in a5e5a77 ['init.lua'] = 'file'.
It may be worth exposing that table to the outside and let ~/textadept/init.lua add to it. I'll consider this. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, again! First of all, excuse me for monopolizing the forum recently. To my partial excuse, I've been silently learning, experimenting and developing Textadept scripts and modules for more than one year... and now I feel OK to finally ask about some things.
In my current understanding of the documentation, Textadept's only concept of "projects" is some kind of parent directory of an opened file (or of itself) in which it recognizes some version control system. Beside that, it supports file-specific and extension-specific compile and run commands, plus another history-based mechanism. I find this system very elegant, as it does not mess the project's directory with editor-specific project files, and allows for having multiple "projects" opened in the same instance.
To my disgrace, in most of my personal unpublished "projects" (both programming-related and not - everything that has a makefile is a "project" in my point of view) I do not use any VC system. I understand that by creating an empty
.gitdirectory in the project's root directory and by configuring the related commands (up to three) in myinit.lua, when editing a file of that project Textadept lets me execute these commands in that project root directory as the working directory.But... It would be possible to have a concept of "project" which simply is a directory path configured in
init.luawith its project-specific commands? This way, when editing a file inside that directory or its subdirectories, the project-specific commands relative to that path would always be available, regardless of the fact of finding a VC system or not. This would be very useful in multi-file projects without a VC system... It would be the analogous of the already existing mechanism based on specific file paths, but with directories.Beta Was this translation helpful? Give feedback.
All reactions