# Is there an easy way to focus the note title with the cursor? #obsidian/api/faq --- ## Sample Code ```ts // open a file and focus the note title. leaf.openFile(file, { state: { mode: 'source' }, eState: { rename: 'end' } // 'start' | 'end' }); ```