# Defaut Edit/Preview mode per file in YAML front matter

**URL:** <https://forum.obsidian.md/t/defaut-edit-preview-mode-per-file-in-yaml-front-matter/10763>\
**Category:** Feature requests\
**Created:** [January 1, 2021, 10:33pm UTC](https://forum.obsidian.md/t/defaut-edit-preview-mode-per-file-in-yaml-front-matter/10763 "2021-01-01T22:33:23Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![malecjan](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/m/a6a055/32.png) [@malecjan](https://forum.obsidian.md/u/malecjan)\
**Post date:** [January 11, 2021, 5:19pm UTC](https://forum.obsidian.md/t/defaut-edit-preview-mode-per-file-in-yaml-front-matter/10763/2 "2021-01-11T17:19:05Z")

</div>

Overlapping feature request:

> [@Remember view mode per file](https://forum.obsidian.md/t/remember-view-mode-per-file/7069):
>
> Obsidian has a feature to set the default view mode - you can set it to “edit” when you frequently edit content, or to “view” when you more frequently just browse and view content. However, my usage is mixed. There are some files which I usually only view, and others where I constantly edit. It would be great if Obsidian could somehow remember the last view mode for each file individually.

Not sure if to merge these since there are differences.

* * *

Suggestion for this one:

> [@Remember view mode per file](https://forum.obsidian.md/t/remember-view-mode-per-file/7069/3):
>
> The information could be formulated in YAML front-matter e.g. as one of the following:  
> `obsidian-ui-mode: editor`  
> `obsidian-ui-mode: render`  
> `obsidian-ui-mode: live # wysiwyg`  
> …
> 
> Then it could be either ignored or respected by toggle in some Plug-in.  
> Files without this specified would behave as they do now.

---

_[View the full topic](https://forum.obsidian.md/t/defaut-edit-preview-mode-per-file-in-yaml-front-matter/10763)._
