Configuring hotkey for moving a file

What I’m trying to do

I often find myself making a new note, but it ends up being in the wrong location. That kinda sucks so I’d like to do it with a hotkey. Instead of pulling up the command palette every time.
If I’m doing anything fundamentally wrong then please tell me. Also if you have a suggestion on how to change my workflow so that I don’t have the need to move as many files.

Things I have tried

One of the things I have looked at is this post: Option in command palette and context menu to "move file" but it seemed like the consensus was that one should be content with opening the command palette each time.

by the way, I read online about ctrl M, but that doesn’t work.
any clues?

solution:

  1. go to settings by pressing the cog
  2. go to Hotkeys
  3. in the hotkey search box, search for move current file
  4. you’ll find the action called “Move current file to another folder”
  5. press the plus button next to Blank
  6. press your desired key combination, I went with ctrl m

… and you’re done
if you’re having any trouble, take a look at this thread. And especially the later answers where people were having difficulties because they had disabled the file explorer core plugin.

if you have time and inclination, check out the video i linked the other other day:

then using the method talked about in the video
you can have your templates based on triggers move files into dedicated folders

so if your template had a computer - prefix or any other you added in the meta template picker, you can use this templater snippet to move the file in the Computer stuff folder (you can change the folder name and the properties here of course):

<%-*
var cleanTitle = tp.user.getTitleSnippet(tp.file.title)
var title = `${cleanTitle}`
await tp.file.rename(`${title}`)
await tp.file.move("Computer stuff" + "/" + `${cleanTitle}`)
_%>
---
title: <%tp.user.getTitleSnippet(tp.file.title)%>
tags:
  - computer
created: <% tp.date.now("YYYY-MM-DD")%>
modified: <% tp.date.now("YYYY-MM-DD")%>
---

# <%-* tR += tp.user.getTitleSnippet(tp.file.title) -%>


<% tp.file.cursor(1) %>
  • save and name the snippet with a name referenced in the meta template picker file

tip: no need to write anything from the video on your own as you can access the files and lines talked about in the video from here:

you can then add any number of triggers and templates, including dailies, etc.

this was the exact type of response that I was hoping for whe I said

Also if you have a suggestion on how to change my workflow so that I don’t have the need to move as many files.

Thanks a bunch! Will definitely have a look!

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.