Skip to content

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

Description

@michabbb

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 🫨

Activity

  1. michabbb commented on Jul 31, 2025

    @michabbb
    Author

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

  2. thiagodebastos commented on Aug 1, 2025

    @thiagodebastos

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

  3. assigned and unassigned on Aug 1, 2025
  4. michabbb commented on Aug 1, 2025

    @michabbb
    Author

    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 🙏 🙏 🙏

  5. michabbb commented on Aug 2, 2025

    @michabbb
    Author

    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

  6. michabbb commented on Aug 9, 2025

    @michabbb
    Author
    opencode_paste_problem.mp4

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

  7. neominik commented on Aug 9, 2025

    @neominik
    Contributor

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

  8. michabbb commented on Aug 9, 2025

    @michabbb
    Author

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

  9. michabbb commented on Aug 11, 2025

    @michabbb
    Author

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

  10. rekram1-node commented on Aug 11, 2025

    @rekram1-node
    Collaborator

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

  11. neominik commented on Aug 12, 2025

    @neominik
    Contributor

    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.

  12. michabbb commented on Aug 12, 2025

    @michabbb
    Author

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

  13. michabbb commented on Aug 12, 2025

    @michabbb
    Author

    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.

  14. adamdotdevin commented on Aug 13, 2025

    @adamdotdevin
    Member

    @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

  15. michabbb commented on Aug 13, 2025

    @michabbb
    Author

    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 up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions