- Notifications
You must be signed in to change notification settings - Fork28
Commit41e3c94
committed
psql: when tab-completing, use quotes on file names that need them
psql backslash commands that deal with file or directory names requirequotes around those that have spaces, single quotes, or backslashes.However, tab-completing such names does not provide said quotes, and isthus almost useless with them.This patch fixes the problem by having a wrapper function aroundrl_filename_completion_function that dequotes on input and quotes onoutput. This eases dealing with such names.Author: Noah Misch1 parentcb3a7c2 commit41e3c94
3 files changed
+128
-2
lines changedLines changed: 69 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
272 | 272 |
| |
273 | 273 |
| |
274 | 274 |
| |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + |
Lines changed: 3 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
19 | 19 |
| |
20 | 20 |
| |
21 | 21 |
| |
| 22 | + | |
| 23 | + | |
| 24 | + | |
22 | 25 |
|
Lines changed: 56 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
680 | 680 |
| |
681 | 681 |
| |
682 | 682 |
| |
| 683 | + | |
683 | 684 |
| |
684 | 685 |
| |
685 | 686 |
| |
| |||
1630 | 1631 |
| |
1631 | 1632 |
| |
1632 | 1633 |
| |
1633 |
| - | |
| 1634 | + | |
| 1635 | + | |
| 1636 | + | |
| 1637 | + | |
1634 | 1638 |
| |
1635 | 1639 |
| |
1636 | 1640 |
| |
| |||
2953 | 2957 |
| |
2954 | 2958 |
| |
2955 | 2959 |
| |
2956 |
| - | |
| 2960 | + | |
| 2961 | + | |
| 2962 | + | |
| 2963 | + | |
2957 | 2964 |
| |
2958 | 2965 |
| |
2959 | 2966 |
| |
| |||
3426 | 3433 |
| |
3427 | 3434 |
| |
3428 | 3435 |
| |
| 3436 | + | |
| 3437 | + | |
| 3438 | + | |
| 3439 | + | |
| 3440 | + | |
| 3441 | + | |
| 3442 | + | |
| 3443 | + | |
| 3444 | + | |
| 3445 | + | |
| 3446 | + | |
| 3447 | + | |
| 3448 | + | |
| 3449 | + | |
| 3450 | + | |
| 3451 | + | |
| 3452 | + | |
| 3453 | + | |
| 3454 | + | |
| 3455 | + | |
| 3456 | + | |
| 3457 | + | |
| 3458 | + | |
| 3459 | + | |
| 3460 | + | |
| 3461 | + | |
| 3462 | + | |
| 3463 | + | |
| 3464 | + | |
| 3465 | + | |
| 3466 | + | |
| 3467 | + | |
| 3468 | + | |
| 3469 | + | |
| 3470 | + | |
| 3471 | + | |
| 3472 | + | |
| 3473 | + | |
| 3474 | + | |
| 3475 | + | |
| 3476 | + | |
| 3477 | + | |
| 3478 | + | |
| 3479 | + | |
| 3480 | + | |
| 3481 | + | |
| 3482 | + | |
3429 | 3483 |
| |
3430 | 3484 |
| |
3431 | 3485 |
| |
|
0 commit comments
Comments
(0)