# Configuring hotkey for moving a file

**URL:** <https://forum.obsidian.md/t/configuring-hotkey-for-moving-a-file/87208>\
**Category:** Help\
**Created:** [August 21, 2024, 1:43pm UTC](https://forum.obsidian.md/t/configuring-hotkey-for-moving-a-file/87208 "2024-08-21T13:43:13Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![blancheApricot](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/b/58f4c7/32.png) [@blancheApricot](https://forum.obsidian.md/u/blancheApricot)\
**Post date:** [August 21, 2024, 1:43pm UTC](https://forum.obsidian.md/t/configuring-hotkey-for-moving-a-file/87208/1 "2024-08-21T13:43:13Z")

</div>

### 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"](https://forum.obsidian.md/t/option-in-command-palette-and-context-menu-to-move-file/269) but it seemed like the consensus was that one should be content with opening the command palette each time.

---

<div class="post-metadata">

**Author:** ![blancheApricot](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/b/58f4c7/32.png) [@blancheApricot](https://forum.obsidian.md/u/blancheApricot)\
**Post date:** [August 21, 2024, 1:45pm UTC](https://forum.obsidian.md/t/configuring-hotkey-for-moving-a-file/87208/2 "2024-08-21T13:45:37Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![blancheApricot](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/b/58f4c7/32.png) [@blancheApricot](https://forum.obsidian.md/u/blancheApricot)\
**Post date:** [August 21, 2024, 3:32pm UTC](https://forum.obsidian.md/t/configuring-hotkey-for-moving-a-file/87208/3 "2024-08-21T15:32:26Z")

</div>

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](https://forum.obsidian.md/t/option-in-command-palette-and-context-menu-to-move-file/269/54). And especially the later answers where people were having difficulties because they had disabled the file explorer core plugin.

---

<div class="post-metadata">

**Author:** ![Yurcee](https://forum.obsidian.md/user_avatar/forum.obsidian.md/yurcee/32/53074_2.png) [@Yurcee](https://forum.obsidian.md/u/Yurcee)\
**Post date:** [August 21, 2024, 4:01pm UTC](https://forum.obsidian.md/t/configuring-hotkey-for-moving-a-file/87208/4 "2024-08-21T16:01:11Z")

</div>

> [@blancheApricot](#):
>
> 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.

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

> [@Is it possible to make a property list be dinamicly populated by a dataview functions?](https://forum.obsidian.md/t/is-it-possible-to-make-a-property-list-be-dinamicly-populated-by-a-dataview-functions/87101/5):
>
> no need to use folders - if i remember correctly, the person moves files into folders, so it’s not like normal Templater folder-based picking also, there’s a guide by @Caffae AKA Pamela Wang - you can try BryanJenks’s/Her system: [[Obsidian: Building the Meta-Templater from Scratch] ](https://www.youtube.com/watch?v=5zcdG6ZWja4)

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):

```auto
<%-*
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:

> **[GitHub - Pamela-Wang/Obsidian-Starter-Vaults: This repo contains the templates used in my...](https://github.com/Pamela-Wang/Obsidian-Starter-Vaults)**
>
> This repo contains the templates used in my automated obsidian weekly review video and also an accompanying vault with the folder structure expected and plugins (periodic note settings etc)

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

---

<div class="post-metadata">

**Author:** ![blancheApricot](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/b/58f4c7/32.png) [@blancheApricot](https://forum.obsidian.md/u/blancheApricot)\
**Post date:** [August 21, 2024, 6:32pm UTC](https://forum.obsidian.md/t/configuring-hotkey-for-moving-a-file/87208/5 "2024-08-21T18:32:08Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![system](https://forum.obsidian.md/uploads/default/original/3X/b/e/bec35fbd23ab28909bb6bfe62cb32eb82dd34019.png) [@system](https://forum.obsidian.md/u/system)\
**Post date:** [September 18, 2024, 6:32pm UTC](https://forum.obsidian.md/t/configuring-hotkey-for-moving-a-file/87208/6 "2024-09-18T18:32:41Z")

</div>

Closed on September 18, 2024, 6:32pm UTC

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