mirror of
https://github.com/ThePrimeagen/harpoon.git
synced 2025-07-13 17:40:25 +00:00
feat(list-api): expose index for later usage
- I have a custom append/prepend list where I need to notify the user if current file is already in the list, if it is, I want to hint the use for the exact index, so we can go faster
This commit is contained in:
parent
a38be6e0dd
commit
3292a609c6
@ -126,7 +126,7 @@ function HarpoonList:get_by_display(name)
|
||||
if index == -1 then
|
||||
return nil
|
||||
end
|
||||
return self.items[index]
|
||||
return self.items[index], index
|
||||
end
|
||||
|
||||
--- much inefficiencies. dun care
|
||||
|
Loading…
x
Reference in New Issue
Block a user