foam icon indicating copy to clipboard operation
foam copied to clipboard

Support one way of knowledge accumulation

Open fanlushuai opened this issue 3 years ago • 5 comments

Is your feature request related to a problem? Please describe.

This is my way of knowledge accumulation

We need daily thinking to feel and plan

We need a daily plan to organize our actions,too.

Form a thought-based document. And a plan of action from the plan.

The current approach does not distinguish between thinking and planning, but is broadly defined as note-taking

So, We need another set of logic that exists just like the daily notes,To provide us with different content to record

Set up a daily journal and daily schedule. Not just daily notes.

Have both shortcut key start and auto start functions, and automatically create new files based on the date

Describe the solution you'd like

  1. Add directory l multi-group configuration. (Defines multiple groups of start directories ,and filename format)
  2. Add default directory configuration. (Define a start directory as the vscode boot directory)
  3. Operation exposed. (Follow the time to create a file in the directory, contributed as the vscode command. Users can define multiple groups of shortcut key bindings associated with multiple start directories, and the built-in default is to bind one directory

Describe alternatives you've considered

none

Screenshots or Videos

No response

fanlushuai avatar Mar 02 '22 08:03 fanlushuai

IIUC what you are trying to achieve, we might already have all the building blocks to achieve it, and might need to do some minor tuning to fit it all together.

  1. You can create a template for one of your "groups"
  2. In the template use the path property to define how files will be created
  3. (missing) having a command that opens a template
  4. associate a shortcut to such command

I believe this would achieve your use case, am I right?

riccardoferretti avatar Mar 02 '22 13:03 riccardoferretti

Yeah, it just needs a little adjustment

  1. Add path properties to the template

  2. Give a configuration about binding relationship between different templates and different shortcut keys to enable reuse of create commands. If no binding relationship is given, the default is used.

fanlushuai avatar Mar 02 '22 18:03 fanlushuai

I thought about it again

I'm not sure vscode supports context-aware shortcuts.

If not, you can only support using two different templates at the same time by adding commands

fanlushuai avatar Mar 02 '22 20:03 fanlushuai

I thought about it again

I'm not sure vscode supports context-aware shortcuts.

If not, you can only support using two different templates at the same time by adding commands

https://code.visualstudio.com/docs/getstarted/keybindings#_command-arguments

Keybinding parameter may solve the problem.

Only parameter judgment and related group configuration need to be added inside the command.

fanlushuai avatar Mar 02 '22 20:03 fanlushuai

That's correct, this is the way we could achieve your use case

riccardoferretti avatar Mar 03 '22 10:03 riccardoferretti