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

Feature - Default Name while creating or renaming with current date/time #183

Open
nanocent opened this issue Feb 4, 2021 · 2 comments
Open

Comments

@nanocent
Copy link

nanocent commented Feb 4, 2021

Hi, one of the use cases I encountered is that we take down raw notes in a new sublime tab but then these tabs are cluttered with very less visibility about when they were created.

Therefore, it would be great if we could add the default file name option as well while creating or renaming the file.

@skuroda
Copy link
Collaborator

skuroda commented Mar 4, 2021

Hi @nanocent, apologize for the month (!) delay in replying. I don't actively maintain this anymore. However, is the default_initial the setting you're looking for? The string you place in that value will populate the initial input.

@FichteFoll
Copy link
Member

FichteFoll commented Jul 19, 2022

As a workaround, you may use the commands provided by https://packagecontrol.io/packages/InsertDate via key bindings to insert the current date into ANF's "New File" input panel.

Since that package is way more flexible and I could see different use cases for similarly complex default file names, I'd rather provide the ability to specify commands to be run on the input view rather than adding the ability to use a formatted timestamp in the template. This would also allow inserting snippets with fields using the insert_snippet command, for example (or the chain command to execute multiple commands, assuming that works properly for input views).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants