Search notes:

Stellarium API: core.setSelectedObjectInfo

core.setSelectedObjectInfo(level) allows to set the amount of information that is shown when an object is selected (see core.selectObjectByName()).
core.setSelectedObjectInfo('AllInfo');
core.setSelectedObjectInfo('ShortInfo');
core.setSelectedObjectInfo('None');

See also

The GUI dialog Configuration -> Information allows to choose the amount of information with much more details.

Index