quickadd icon indicating copy to clipboard operation
quickadd copied to clipboard

[BUG] cannot capture to the cursor position of an active file

Open Ravenclawer opened this issue 3 years ago • 1 comments

Describe the bug A clear and concise description of what the bug is. setting: image

when using capture to active file, the capture function will produce error Animation1

To Reproduce Steps to reproduce the behavior:

  1. add an quickadd capture option like in the previous section
  2. ctrl+p and search for the command
  3. write any thing and press enter
  4. See error

Expected behavior A clear and concise description of what you expected to happen. to put the thing you write to the current cursor position Screenshots If applicable, add screenshots to help explain your problem. image

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22] windows 0.13.23 Smartphone (please complete the following information):
  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22] not test on mobile device Additional context Add any other context about the problem here.

Ravenclawer avatar Feb 07 '22 07:02 Ravenclawer

the bug will go away if you open write to bottom of file image demo: Animation2

Ravenclawer avatar Feb 07 '22 07:02 Ravenclawer

Bumping this: as of the latest release this morning (0.18.1), quickadd doesn't seem to be able to insert at the current cursor position, it inserts at the top of the file. Toggling "Write to bottom of the file" as noted above changes the behavior to write to the bottom of the file, but that's still not the active cursor position.

EDIT: to reproduce, this is the configuration:

image

Before, with cursor on the middle line:

image

After invoking "insert test", you can see the content is at the top:

image

zerowidth avatar Apr 03 '23 15:04 zerowidth

Hi @Ravenclawer & @zerowidth!

Thank you for reporting this. I've just pushed an update which should fix the issue. Should be 0.18.2. Can you confirm this on your end? Apologize for the inconvenience this may have caused!

chhoumann avatar Apr 04 '23 16:04 chhoumann

@chhoumann Long-time user, first-time caller! I can't speak for @Ravenclawer or @zerowidth, but I had the same issue with capturing to the cursor position, and it appears to be resolved with 0.18.2. Thanks for such a great plugin!

ianlhayes avatar Apr 04 '23 18:04 ianlhayes

That's great to hear. Thank you for updating me, @ianlhayes! Glad you like the plugin as well :)

Considering this issue resolved.

chhoumann avatar Apr 04 '23 19:04 chhoumann

I can confirm that this behavior is fixed. However, another bug... #440

zerowidth avatar Apr 04 '23 22:04 zerowidth