Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatically entered numbers not deleted after setting formatting #11

Open
RaptorX opened this issue Apr 1, 2023 · 5 comments
Open

Comments

@RaptorX
Copy link

RaptorX commented Apr 1, 2023

Type: Bug

  • Press the hotkey
  • The default numbers get added to the selection (0,1,2,3)
  • Set the desired formatting: (%d:4:1)
  • Hit enter
  • Watch how the string now becomes: 04,15,26,37

Notes

This seems to happen because the original numbers added by the extension dont get deleted.


Extension version: 0.9.1
VS Code version: Code 1.76.2 (ee2b180d582a7f601fa6ecfdad8d9fd269ab1884, 2023-03-14T17:55:54.936Z)
OS version: Windows_NT x64 10.0.19045
Modes:
Sandboxed: No

System Info
Item Value
CPUs Intel(R) Core(TM) i5-4460 CPU @ 3.20GHz (4 x 3198)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_renderer: enabled_on
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: disabled_off
Load (avg) undefined
Memory (System) 31.88GB (10.71GB free)
Process Argv D:\Cloud\RaptorX\Dropbox\Guests\the-Automator\Scripts to Work on\Prompt Assistant --crash-reporter-id 5662df70-51fa-468c-b034-629cf5419c2f
Screen Reader no
VM 0%
A/B Experiments
vsliv368cf:30146710
vsreu685:30147344
python383:30185418
vspor879:30202332
vspor708:30202333
vspor363:30204092
vslsvsres303:30308271
vserr242cf:30382550
pythontb:30283811
vsjup518:30340749
pythonptprofiler:30281270
vshan820:30294714
vstes263:30335439
vscorecescf:30445987
pythondataviewer:30285071
vscod805:30301674
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
cmake_vspar411:30581797
vsaa593cf:30376535
pythonvs932:30410667
cppdebug:30492333
vsclangdc:30486549
c4g48928:30535728
dsvsc012:30540252
pynewext54:30695312
azure-dev_surveyone:30548225
nodejswelcome1cf:30587006
3biah626:30602489
pyind779:30671433
f6dab269:30613381
pythonsymbol12:30671437
vsccsb:30677849
pythonb192:30669360
azdwalk:30687957
pythonms35:30701012

@ldexterldesign
Copy link

😭

@ethan-xd
Copy link

ethan-xd commented May 22, 2023

Bump I need the offsets fixed 😪

Edit: This extension is a good stockgap but doesn't support formatting it seems.

@RaptorX
Copy link
Author

RaptorX commented May 22, 2023

Bump I need the offsets fixed 😪

Edit: This extension is a good stockgap but doesn't support formatting it seems.

After testing a few of the ones in the marketplace I had also settled for that one as it is the more stable one and they did fix this issue when I mentioned it.

But I'm on the same boat as you in the sense of noticing that this extension had the best formatting options compared to the others.

@domiko96
Copy link

Same problem here,
Very useful extension with nice formatting features, however this bug is quite annoying.

@Kaiserouo
Copy link

It seems like the inserted numbers is not selected, so it won't be replaced. But if your cursors already select things, then the selected region will be replaced.
So my method now is:

  1. Make sure your cursor is not surrounded by ascii characters (for step 4, otherwise these will be deleted).
  2. Ctrl+Alt+N to insert the default numbers.
  3. Esc to cancel the popup box.
  4. Ctrl+D to select the default numbers.
  5. Ctrl+Alt+N again, note the default numbers are selected.
  6. Type your desired format.
  7. Profit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants