how the heck can i paste in a filename without the @ #1027

Closed
opened 2026-02-16 17:29:07 -05:00 by yindo · 14 comments
Owner

Originally created by @michabbb on GitHub (Jul 31, 2025).

Originally assigned to: @adamdotdevin on GitHub.

i´m getting crazy with that, please help !!!
it makes absolutely no sense to enforce including a file just because someone is mentioning a filename.
if i say "rename the file xxx to yyyy" there is no need to add the whole file to the context....

heeeeeeeeeeeelp 🫨

Originally created by @michabbb on GitHub (Jul 31, 2025). Originally assigned to: @adamdotdevin on GitHub. i´m getting crazy with that, please help !!! it makes absolutely no sense to enforce including a file just because someone is mentioning a filename. if i say "rename the file xxx to yyyy" there is no need to add the whole file to the context.... heeeeeeeeeeeelp 🫨
yindo closed this issue 2026-02-16 17:29:08 -05:00
Author
Owner

@michabbb commented on GitHub (Jul 31, 2025):

okay, i can use /editor - but come on, this cannot be the way to do this ...... 😖

@michabbb commented on GitHub (Jul 31, 2025): okay, i can use /editor - but come on, this cannot be the way to do this ...... 😖
Author
Owner

@thiagodebastos commented on GitHub (Jul 31, 2025):

I don't have time to test right now, but can you wrap the file name in quotes?

@thiagodebastos commented on GitHub (Jul 31, 2025): I don't have time to test right now, but can you wrap the file name in quotes?
Author
Owner

@michabbb commented on GitHub (Aug 1, 2025):

I tried everything, as soon as I paste in the filename, a @ will ALWAYS be added, that's making me insane 🤯

@thdxr please please please let the user decide if a file should be included to the context or not - like Claude code is handling it, that's the only way that makes sense, thanks 🙏 🙏 🙏

@michabbb commented on GitHub (Aug 1, 2025): I tried everything, as soon as I paste in the filename, a @ will ALWAYS be added, that's making me insane 🤯 @thdxr please please please let the user decide if a file should be included to the context or not - like Claude code is handling it, that's the only way that makes sense, thanks 🙏 🙏 🙏
Author
Owner

@michabbb commented on GitHub (Aug 2, 2025):

lets say you say "create a new xyz and write it to the directory app/something/here"

there is no chance to write any directory name without opencode adding "@" automatically to it, which would mean the whole dir is now in the context.... that´s insane.... pardon

@michabbb commented on GitHub (Aug 2, 2025): lets say you say "create a new xyz and write it to the directory app/something/here" there is no chance to write any directory name without opencode adding "@" automatically to it, which would mean the whole dir is now in the context.... that´s insane.... pardon
Author
Owner

@michabbb commented on GitHub (Aug 9, 2025):

https://github.com/user-attachments/assets/2c3fd455-054d-4de6-ab1a-73f32dd0e7ca

@thdxr @neominik pardon, this isn´t fixed !!!! 😢 😢 😢

@michabbb commented on GitHub (Aug 9, 2025): https://github.com/user-attachments/assets/2c3fd455-054d-4de6-ab1a-73f32dd0e7ca @thdxr @neominik pardon, this isn´t fixed !!!! 😢 😢 😢
Author
Owner

@neominik commented on GitHub (Aug 9, 2025):

It's not included in release v0.4.2. Will be in the next one.

@neominik commented on GitHub (Aug 9, 2025): It's not included in release v0.4.2. Will be in the next one.
Author
Owner

@michabbb commented on GitHub (Aug 9, 2025):

@neominik ah okay, sorry... thanks !! I’ll be so relieved when this finally works; it’s been driving me crazy since day one 🙈

@michabbb commented on GitHub (Aug 9, 2025): @neominik ah okay, sorry... thanks !! I’ll be so relieved when this finally works; it’s been driving me crazy since day one 🙈
Author
Owner

@michabbb commented on GitHub (Aug 11, 2025):

pasting filenames is finally working, thank you so much !!!!!!!!!!!!! ❤️ ❤️ ❤️ ❤️ ❤️ ❤️ ❤️ ❤️ ❤️ 🙏 🙏 🙏 🙏 🙏 🙏 🙏

@michabbb commented on GitHub (Aug 11, 2025): pasting filenames is finally working, thank you so much !!!!!!!!!!!!! ❤️ ❤️ ❤️ ❤️ ❤️ ❤️ ❤️ ❤️ ❤️ 🙏 🙏 🙏 🙏 🙏 🙏 🙏
Author
Owner

@rekram1-node commented on GitHub (Aug 11, 2025):

Unfortunately the fix will have to be reverted, change breaks all attachment drag & drops, also seems to have caused panics

@rekram1-node commented on GitHub (Aug 11, 2025): Unfortunately the fix will have to be reverted, change breaks all attachment drag & drops, also seems to have caused panics
Author
Owner

@neominik commented on GitHub (Aug 12, 2025):

Unfortunately the fix will have to be reverted, change breaks all attachment drag & drops, also seems to have caused panics

🥲
You could still type @, then drag & drop, but I agree that properly distinguishing between drag & drop and regular pastes might be preferable. Would also be interested in the specific panics.

@neominik commented on GitHub (Aug 12, 2025): > Unfortunately the fix will have to be reverted, change breaks all attachment drag & drops, also seems to have caused panics 🥲 You could still type @, then drag & drop, but I agree that properly distinguishing between drag & drop and regular pastes might be preferable. Would also be interested in the specific panics.
Author
Owner

@michabbb commented on GitHub (Aug 12, 2025):

Of course, just when I thought I can finally work with that thing..... (I never ever dragged anything into opencode).... 😭😭😭😭😭

@michabbb commented on GitHub (Aug 12, 2025): Of course, just when I thought I can finally work with that thing..... (I never ever dragged anything into opencode).... 😭😭😭😭😭
Author
Owner

@michabbb commented on GitHub (Aug 12, 2025):

But to be honest, nobody can tell me he is dragging stuff all the time, so this shouldn't be a big deal to write a simple @ sign. On the other hand, writing file names and paths is something you do all the time... Maybe I am wrong, but the adding something should never be "automatically", doesn't matter it's an image or a filename. This caused all the problems in the first place.

@michabbb commented on GitHub (Aug 12, 2025): But to be honest, nobody can tell me he is dragging stuff all the time, so this shouldn't be a big deal to write a simple @ sign. On the other hand, writing file names and paths is something you do all the time... Maybe I am wrong, but the adding something should never be "automatically", doesn't matter it's an image or a filename. This caused all the problems in the first place.
Author
Owner

@adamdotdevin commented on GitHub (Aug 13, 2025):

@michabbb latest release has a behavior to delete the attachment when you backspace over it, so there's a workaround for now at least; still need to think through how we could balance your needs with drag&drop

@adamdotdevin commented on GitHub (Aug 13, 2025): @michabbb latest release has a behavior to delete the attachment when you backspace over it, so there's a workaround for now at least; still need to think through how we could balance your needs with drag&drop
Author
Owner

@michabbb commented on GitHub (Aug 13, 2025):

please let me explain. when i paste a filename, even if i can remove the "@" in front, i still have to move the cursor to the start of the file or directory to delete it. gemini does the same, which is terrible. i am in the flow of writing a prompt, and whenever i mention a filename i have to go back, delete the "@", return to the end, and continue writing. it kills my focus and interrupts my flow. i want to add something myself. i, not the app, add an "@". i, the user, should decide what gets added to the context, not the tool. automatically adding anything is overengineered and unnecessary.

again, i hope you find a way that works like claude code, where the user is in charge, not the tool. thanks. 🙏

@michabbb commented on GitHub (Aug 13, 2025): please let me explain. when i paste a filename, even if i can remove the "@" in front, i still have to move the cursor to the start of the file or directory to delete it. gemini does the same, which is terrible. i am in the flow of writing a prompt, and whenever i mention a filename i have to go back, delete the "@", return to the end, and continue writing. it kills my focus and interrupts my flow. i want to add something myself. i, not the app, add an "@". i, the user, should decide what gets added to the context, not the tool. automatically adding anything is overengineered and unnecessary. again, i hope you find a way that works like claude code, where the user is in charge, not the tool. thanks. 🙏
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#1027