There is a community plugin called Meld Encrypt which lets you selectively encrypt files. Because of the way it seems to work, it would interfere with search and graph view. Also, anytime you decrypt and encrypt the note, Sync will transmit those changes which will pollute your Sync version history. I suspect the file name would not be obfuscated on the local disk either, so keep that in mind as well. Try it out yourself to confirm.
Personally, I would either use full disk encryption (it seems MacOS has a built in tool called File Vault) or create an encrypted container using VeraCrypt or a similar tool.
I’m not sure what your specific threat model is, but keep in mind that these tools don’t guruantee security if you don’t have physical security of your device, e.g. evil maid attacks. For the average user, these tools prevent a thief who steals their laptop from getting their data and raise the bar for snoopy roommates/family members.