Closed HuM4NoiD closed 1 year ago
I did not find the discussions tab, so I apologize for raising an issue
This project is small enough that I think issues work fine, no worries!
The type field is used for the directory of workspaces support used by the WorkspacesAddDir
command and other commands.
In the current code you could safely store a string in that field, so long as that string is not 'directory'
and everything should work fine from what I can see. But there is no guarantee that things would work in the future.
How do I set that field and make sure it persists? is there a command? or a function that takes in the table structure mentioned in the op?
Thanks for bringing that up, I guess I didn't think hard enough. I'll take some time tomorrow to update the code to support this use case
@HuM4NoiD I just pushed a commit that adds two new functions get_custom()
and set_custom()
to get and set custom strings. Let me know if there is anything else needed!
Looks good, Thanks!
I did not find the discussions tab, so I apologize for raising an issue
I noticed a type field along with other relevant information in a single item from the table returned by
require("workspaces").get()
:I wanted to know if this
type
field was being used by workspaces. If it wasn't, I'd want to: