public List getActions()

in ui/src/com/jediterm/terminal/ui/TerminalPanel.java [1718:1757]


  public List<TerminalAction> getActions() {
    return List.of(
            new TerminalAction(mySettingsProvider.getOpenUrlActionPresentation(), input -> {
              return openSelectionAsURL();
            }).withEnabledSupplier(this::selectionTextIsUrl),
            new TerminalAction(mySettingsProvider.getCopyActionPresentation(), this::handleCopy) {
              @Override
              public boolean isEnabled(@Nullable KeyEvent e) {
                return e != null || mySelection != null;
              }
            }.withMnemonicKey(KeyEvent.VK_C),
            new TerminalAction(mySettingsProvider.getPasteActionPresentation(), input -> {
              handlePaste();
              return true;
            }).withMnemonicKey(KeyEvent.VK_P).withEnabledSupplier(() -> getClipboardString() != null),
            new TerminalAction(mySettingsProvider.getSelectAllActionPresentation(), input -> {
              selectAll();
              return true;
            }),
            new TerminalAction(mySettingsProvider.getClearBufferActionPresentation(), input -> {
              clearBuffer();
              return true;
            }).withMnemonicKey(KeyEvent.VK_K).withEnabledSupplier(() -> !myTerminalTextBuffer.isUsingAlternateBuffer()).separatorBefore(true),
            new TerminalAction(mySettingsProvider.getPageUpActionPresentation(), input -> {
              pageUp();
              return true;
            }).withEnabledSupplier(() -> !myTerminalTextBuffer.isUsingAlternateBuffer()).separatorBefore(true),
            new TerminalAction(mySettingsProvider.getPageDownActionPresentation(), input -> {
              pageDown();
              return true;
            }).withEnabledSupplier(() -> !myTerminalTextBuffer.isUsingAlternateBuffer()),
            new TerminalAction(mySettingsProvider.getLineUpActionPresentation(), input -> {
              scrollUp();
              return true;
            }).withEnabledSupplier(() -> !myTerminalTextBuffer.isUsingAlternateBuffer()).separatorBefore(true),
            new TerminalAction(mySettingsProvider.getLineDownActionPresentation(), input -> {
              scrollDown();
              return true;
            }));
  }