knight errantry

noun

1.
quixotic (romantic and impractical) behavior
2.
(Middle Ages) the code of conduct observed by a knight errant who is wandering in search of deeds of chivalry