[pull] master from junegunn:master#179
Merged
pull[bot] merged 2 commits intoadmariner:masterfrom Mar 26, 2025
Merged
Conversation
When 'search' and any action that modifies the query are in an action chain, anything that comes later takes precedence.
Reviewer's Guide by SourceryThis pull request refactors the printing of info messages in Sequence diagram for printing info messagessequenceDiagram
participant Terminal
Terminal->Terminal: uiMutex.Lock()
Terminal->Terminal: mutex.Lock()
loop For each key
Terminal->Terminal: EventType(key)
alt req == reqPrompt
Terminal->Terminal: printPrompt()
alt infoStyle == infoInline || infoStyle == infoInlineRight
Terminal->Terminal: info = true
end
else req == reqInfo
Terminal->Terminal: info = true
else req == reqList
Terminal->Terminal: printList()
Terminal->Terminal: currentIndex()
Terminal->Terminal: focusChanged
alt focusChanged && focusedIndex >= 0 && track == trackCurrent
Terminal->Terminal: track = trackDisabled
Terminal->Terminal: info = true
else focusChanged && track == trackNearest
Terminal->Terminal: adjustTracked()
Terminal->Terminal: info = true
end
end
end
alt info && !resizeIfNeeded()
Terminal->Terminal: printInfo()
end
Terminal->Terminal: flush()
Terminal->Terminal: mutex.Unlock()
Terminal->Terminal: uiMutex.Unlock()
Updated class diagram for TerminalclassDiagram
class Terminal {
-input []rune
-inputOverride []rune
+Loop() error
+printInfo()
+resizeIfNeeded() bool
+flush()
+truncateQuery()
}
note for Terminal "inputOverride is now cleared when input changes"
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
See Commits and Changes for more details.
Created by
pull[bot] (v2.0.0-alpha.1)
Can you help keep this open source service alive? 💖 Please sponsor : )
Summary by Sourcery
Refactor terminal event handling and input processing logic in fzf to improve input and query management
Enhancements:
Tests: