ctrl+shift+p filters: :st2 :st3 :win :osx :linux

更新时间:2020-05-29 05:27:12

Browse

Auto​File​Name

by liamcain ALL Top 25

Sublime Text plugin that autocompletes filenames

Details

  • 2014.01.13.07.57.49
    2013.11.27.18.03.11
  • github.​com
  • github.​com
  • 6 years ago
  • 39 minutes ago
  • 8 years ago

Installs

  • Total 1.18M
  • Win 879K
  • Mac 176K
  • Linux 123K
May 28 May 27 May 26 May 25 May 24 May 23 May 22 May 21 May 20 May 19 May 18 May 17 May 16 May 15 May 14 May 13 May 12 May 11 May 10 May 9 May 8 May 7 May 6 May 5 May 4 May 3 May 2 May 1 Apr 30 Apr 29 Apr 28 Apr 27 Apr 26 Apr 25 Apr 24 Apr 23 Apr 22 Apr 21 Apr 20 Apr 19 Apr 18 Apr 17 Apr 16 Apr 15 Apr 14 Apr 13
Windows 527 554 618 647 488 499 568 649 608 638 630 536 566 634 644 727 706 670 592 560 684 746 723 697 708 582 576 624 698 679 719 663 603 580 640 744 700 719 700 608 619 630 663 705 733 694
Mac 67 55 69 68 47 57 74 70 67 60 70 58 67 48 51 76 50 81 50 49 72 75 84 63 63 55 64 67 65 76 76 69 69 58 88 70 77 63 73 47 68 71 66 92 75 75
Linux 58 75 71 66 53 51 47 67 55 51 48 52 62 60 70 73 68 59 63 62 68 67 70 72 75 63 75 68 60 79 78 85 87 74 78 77 54 70 56 63 67 75 56 71 76 62

Readme

Source
raw.​githubusercontent.​com

AutoFileName: Autocomplete Filenames in Sublime Text

Do you ever find yourself sifting through folders in the sidebar trying to remember what you named that file? Can't remember if it was a jpg or a png? Maybe you just wish you could type filenames faster. No more.

Whether your making a img tag in html, setting a background image in css, or linking a .js file to your html (or whatever else people use filename paths for these days…), you can now autocomplete the filename. Plus, it uses the built-in autocomplete, so no need to learn another pesky shortcut.

Usage

If you are looking to autocomplete an image path in an HTML <img> tag:

<img src="../|" />

Pressing ctrl+space, will activate AutoFileName. I list of available files where be ready to select.

Looking for an even more automatic and seemless completion? Add the following to your User Settings file:

"auto_complete_triggers":
[
  {
     "characters": "<",
     "selector": "text.html"
  },
  {
     "characters": "/",
     "selector": "string.quoted.double.html,string.quoted.single.html, source.css"
  }
]

With this, there's no need to worry about pressing ctrl+space, autocompletion with appear upon pressing /.