If taking a nap under four hours it'll work regardless; but if going to sleep for longer than that then just plug it in. Not sure that I see the issue.
If you are going to sleep for a long time, you probably want it plugged in anyway just to make sure the battery doesn't go dead. Maybe I am...