This is how I implemented a command/hotkey toggle for showing line numbers in the editor:
It’s a workaround with a custom CSS snippet and a plugin to toggle the snippet via the command palette.
I’m not how you could directly change the Use [[Wikilinks]]
setting on the fly, or if that would even be stable to switch back and fourth.
For internal attachments, you could create a capture/macro with GitHub - chhoumann/quickadd: QuickAdd for Obsidian to prompt you for the image, then insert it to the working document with a custom template you define. Here’s a long YouTube video with a timestamped linked showing the capture dialog UX: https://www.youtube.com/watch?v=gYK3VDQsZJo&t=1688s
The manual option doesn’t seem too bad though. But maybe I’m missing something. You can just type 
.