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 Request: New Note Location #8

Closed
chrisgrieser opened this issue Oct 28, 2021 · 11 comments
Closed

Feature Request: New Note Location #8

chrisgrieser opened this issue Oct 28, 2021 · 11 comments
Assignees
Labels
enhancement New feature or request

Comments

@chrisgrieser
Copy link
Contributor

The addition of cmd + shift was a great idea!

Ad far as I can tell, it always places the new note in the Vault root. Would it be possible to add some customization where new notes get placed?

Ideally, the new note creation would trigger another suggester where you can select a folder. And Subsequently, the new note gets placed at that location. 🙏

@tadashi-aikawa
Copy link
Owner

Hi, @chrisgrieser. Thank you for creating Feature Request!

Ad far as I can tell, it always places the new note in the Vault root. Would it be possible to add some customization where new notes get placed?

You can specify where the new note gets placed if you set Folder to create new notes in in settings.

image

If my understanding is mistaken, please tell me. 😄

@chrisgrieser
Copy link
Contributor Author

Yes, but that location is rather inflexible. What I was thinking is that "Another Quick Switcher" could let you select the location where to place the new note dynamically each time:

  1. You press shift + enter
  2. A new suggester is opened, where you can search only for folders
  3. You select one folder.
  4. the new note is then placed in that folder

This would allow you much for flexibility, as you can decide every time where you would like to have the new file :)

@tadashi-aikawa
Copy link
Owner

tadashi-aikawa commented Oct 29, 2021

@chrisgrieser
Thank you for the explanation! I understand.

I think I can implement it quickly as follows.

  1. You press shift + enter
  2. Run Move file to another folder after creating the new note

However, the above is essentially the same thing as follows, except that you need not run Move file to another folder manually.

  1. You press shift + enter
  2. Created a new note
  3. You run Move file to another folder

Are you ok with it?

image

@chrisgrieser
Copy link
Contributor Author

yes, basically that should the intended feature, and I think for the most part, that also solves the issue.

However, I think it could make sense to implement the moving independent from the default move command, since that one relies on the file explorer core plugin being enabled. And I assume many people who are heavy users of quick switchers tend do deactivate that core plugin, though. (for example, I did.)

@tadashi-aikawa
Copy link
Owner

I assume many people who are heavy users of quick switchers tend do deactivate that core plugin, though. (for example, I did.)

Oh, I didn't have that idea. If you don't mind, can you tell me the advantage of deactivating File explorer plugin? (because I often use Move file to another foler command..)

@chrisgrieser
Copy link
Contributor Author

I simply do not use the file explorer, since I have a rather flat structure and don't use folders much. The Quick Explorer and Recent Files are enough for me as plugins.

Deactivating the file explorer removes some unnecessary commands from the command palette & also removes the file explorer icons from the sidebar (you cannot remove it otherwise)

@tadashi-aikawa
Copy link
Owner

I see. Simple is important, I think so, too.

Additionally, while Move file to another folder command can only move to a folder that exists, I'll try to be able to also a one that doesn't exist yet. (It means that create a new folder)

As as result,

  1. You press shift + enter
  2. This plugin creates a new file
  3. You run a new command, then a new suggester is opened, where you can search only for folders
    You select one folder.
  4. This plugin moves the new note to a directory selected from suggestions

@chrisgrieser
Copy link
Contributor Author

that sounds great, looking forward to it :)

@tadashi-aikawa tadashi-aikawa self-assigned this Oct 31, 2021
@tadashi-aikawa tadashi-aikawa added the enhancement New feature or request label Oct 31, 2021
@tadashi-aikawa
Copy link
Owner

tadashi-aikawa commented Nov 3, 2021

Hi, @chrisgrieser.

I have implemented it as an experiment.

2021-11-03_19h12_13.mp4

Of course

  • It works without File explorer plugin
  • When we move the file, links related to the file are updated

If you think it is ok, I'll release it as version 1.2.0 :)

@chrisgrieser
Copy link
Contributor Author

Looks fine to me! Thanks a lot :)

@tadashi-aikawa
Copy link
Owner

@chrisgrieser
Thank you for quick confirm!

I have released as v1.2.0 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Development

No branches or pull requests

2 participants