TerminalDisplay: improve middle mouse click paste action.

UIAbstractTableView: Improved auto columns width.
ecode: Improving plugins structure. New linters and formatters json config format.
This commit is contained in:
Martín Lucas Golini
2022-10-03 00:32:39 -03:00
parent e7bcd18a0c
commit 3ffc611712
15 changed files with 308 additions and 167 deletions

View File

@@ -798,7 +798,7 @@ void TerminalDisplay::onMouseDown( const Vector2i& pos, const Uint32& flags ) {
if ( !mAlreadyClickedMButton ) {
mAlreadyClickedMButton = true;
auto selection = mTerminal->getSelection();
if ( !selection.empty() ) {
if ( !selection.empty() && selection != "\n" ) {
for ( auto& chr : selection )
onTextInput( chr );
} else {

View File

@@ -92,7 +92,6 @@ UITerminal::UITerminal( const std::shared_ptr<TerminalDisplay>& terminalDisplay
[&] { mTerm->action( TerminalShortcutAction::FONTSIZE_SHRINK ); } );
setCommand( "terminal-paste", [&] { mTerm->action( TerminalShortcutAction::PASTE ); } );
setCommand( "terminal-copy", [&] { mTerm->action( TerminalShortcutAction::COPY ); } );
setCommand( "terminal-paste", [&] { mTerm->action( TerminalShortcutAction::PASTE ); } );
setCommand( "terminal-open-link",
[&] { Engine::instance()->openURI( mTerm->getTerminal()->getSelection() ); } );
subscribeScheduledUpdate();