hotfix: search path adjustment
This commit is contained in:
parent
bae39c8586
commit
c272eb1e61
|
@ -82,7 +82,7 @@ func indexingScheduler(intervalMinutes uint32) {
|
|||
// Define a function to recursively index files and directories
|
||||
func (si *Index) indexFiles(path string) error {
|
||||
// Check if the current directory has been modified since the last indexing
|
||||
adjustedPath := si.makeIndexPath(path, true)
|
||||
adjustedPath := si.makeIndexPath(path, false)
|
||||
dir, err := os.Open(path)
|
||||
if err != nil {
|
||||
// Directory must have been deleted, remove it from the index
|
||||
|
@ -115,7 +115,7 @@ func (si *Index) indexFiles(path string) error {
|
|||
}
|
||||
|
||||
func (si *Index) InsertFiles(path string) {
|
||||
adjustedPath := si.makeIndexPath(path, false)
|
||||
adjustedPath := si.makeIndexPath(path, true)
|
||||
subDirectory := Directory{}
|
||||
buffer := bytes.Buffer{}
|
||||
|
||||
|
@ -133,7 +133,7 @@ func (si *Index) InsertFiles(path string) {
|
|||
func (si *Index) InsertDirs(path string) {
|
||||
for _, f := range si.GetQuickList() {
|
||||
if f.IsDir {
|
||||
adjustedPath := si.makeIndexPath(path, true)
|
||||
adjustedPath := si.makeIndexPath(path, false)
|
||||
if _, exists := si.Directories[adjustedPath]; exists {
|
||||
si.UpdateCount("dirs")
|
||||
// Add or update the directory in the map
|
||||
|
|
|
@ -438,7 +438,7 @@ export default {
|
|||
const isAlphanumeric = /^[a-z0-9]$/i.test(key);
|
||||
const noModifierKeys = !ctrlKey && !metaKey;
|
||||
|
||||
if (isAlphanumeric && noModifierKeys) {
|
||||
if (isAlphanumeric && noModifierKeys && getters.currentPromptName() == null) {
|
||||
this.alphanumericKeyPress(key); // Call the alphanumeric key press function
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue