Mouse settings refactoring and
clear-history better key binding.