Add text selection and copy capability to terminal UI
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package components
|
||||
|
||||
import (
|
||||
"strconv"
|
||||
"strings"
|
||||
|
||||
"github.com/charmbracelet/bubbles/textinput"
|
||||
@@ -263,7 +264,7 @@ func (m *SearchModel) HighlightMatches(value string) string {
|
||||
Bold(true)
|
||||
|
||||
before := value[:index]
|
||||
match := value[index+len(query)]
|
||||
match := value[index : index+len(query)]
|
||||
after := value[index+len(query):]
|
||||
|
||||
return lipgloss.JoinHorizontal(
|
||||
|
||||
Reference in New Issue
Block a user