Sublime Forum

New to Sublime Text, already charmed!

#1

I don’t know where to begin thanking you guys for this text editor. I was always trying to make a final decision between Notepad++ and Textpad, which are both good editors, but Sublime Text eclipsed them. The only thing it seems to be lacking about is due to the long time it takes to load large files. I have a plain text database at approximately 700kb and it took about 5secs to load. But I’m not here to talk about shortcomings…

Is there a plugin or package to “set favorite files?” let me explain: we can “save” up to ten files most recently used under file -> Open recent. However, there are a lot of files which I have to access and edit and that cannot be saved on that list. Browsing to them everytime is also, planful, since some of them reside on deep folders (game configurations, for instance).

There could be a “file bookmark”, or “favourite files” box/menu, in which we could put links to the most accessed files. This would save a lot of time.

I’m asking here at this forum and not the idea/feature suggestion because I sense someone already had this very same need and asked here first, and being Sublime Text community active as it is, then I think someone already put it together. Is there anypackage?

Thanks!

0 Likes

#2

If you haven’t already, try out ST3. There have been some significant performance increases in this version. At the moment, it does require a license to use ST3, but if you really like it I wouldn’t think there would be a problem supporting development right? Oh and note that sometimes what takes a while is the syntax coloring, not the loading of the actual file (though I guess they are tightly coupled).

Anyways, onto your question, I personally use/recommend FuzzyFileNav. This would let you book mark folders. If you want files specifically, try FavoriteFiles. There are many others (search for “sublime text favorite files” or “sublime text favorite folders”). These generally use the quick panel to select a file. Hope that helps.

0 Likes

#3

You might also try out FileHistory as well (written by me, maintained by FichteFoll). It keeps a history of the accessed and closed files on a per-project basis. You can access this history with the quick panel.

github.com/FichteFoll/sublimetext-filehistory

0 Likes

#4

Thanks for your answers guys, I didn’t even know ST3 was already out, I’m eager to support the development but right now I’m unemployed :frowning:
im trying FavoriteFiles, which appears to be good for the job. The only thing is that are still a few keystrokes away from opening those recurrent files; and since this is a custom command, I don’t know how to create a keyboard shortcut for a specific file :frowning: Is there a way to?

0 Likes

#5

You don’t need a plugin to do this.

Open the command palette, search for “Preferences: Key bindings - User”, open it and add this code to it:

{
    { "keys": "ctrl+alt+0"], "command": "open_file", "args": {"file": "/path/to/your/file.txt"} }
}

You just need to replace the “ctrl+alt+0” with the shortcut you want :smile:

0 Likes

#6

If you only have one file you want to reference, you can do what wessly specified. With FavoriteFiles, you can create a keybinding to the open file quick panel.

[code]

{ "keys": "ctrl+shift+o"], "command": "select_favorite_file" }

][/code]

I got the command through looking at the Default.sublime-commands file.

0 Likes

#7

Sorry for the long time fellows.

@weslly

[quote]You don’t need a plugin to do this.

Open the command palette, search for “Preferences: Key bindings - User”, open it and add this code to it:[/quote]

Two things: first, I set like this:

	{ "keys": "alt+q"], "command": "close_file" },
	{ "keys": "alt+m"], "command": "run_macro_file", "args": {"file": "Packages/User/ponto-e-vírgula-e-jogo-da-velha.sublime-macro"} },
	{ "keys": "ctrl+shift+w"], "command": "toggle_setting", "args": {"setting": "word_wrap"} },
    { "keys": "ctrl+alt+0"], "command": "open_file", "args": {"file": "E:/Dropbox/file.txt"}
}

]

But the file opened was blank. Looking at the titlebar, I oddly saw this:

…so there’s something wrong with the syntax… I tried using \ instead of / in the filepath, but it accused a bad escaping; so I replaced with \, no luck.

Also, there is another issue, but secondary: with that method I’d have to remember a lot of keyboard shortcuts, while having the “favourite files” can save me from filling my head :smile:

@Skuroda: that saved me! :smile:

0 Likes

#8

Try this:


    { "keys": "ctrl+alt+0"], "command": "open_file", "args": {"file": "/e/dropbox/file.txt"}}
]
0 Likes

#9

[quote=“skuroda”]If you haven’t already, try out ST3. There have been some significant performance increases in this version. At the moment, it does require a license to use ST3, but if you really like it I wouldn’t think there would be a problem supporting development right? Oh and note that sometimes what takes a while is the syntax coloring, not the loading of the actual file (though I guess they are tightly coupled).

Anyways, onto your question, I personally use/recommend FuzzyFileNav. This would let you book mark folders. If you want files specifically, try FavoriteFiles. There are many others (search for “sublime text favorite files” or “sublime text favorite folders”). These generally use the quick panel to select a file. Hope that helps.[/quote]

Thanks! FuzzyFileNav is a great find, I just installed it and was something I really wanted from Sublime.
It really needs some way to navigate quickly without having to open/close sublime or mess with windows.

0 Likes

#10

That worked, weslly. Thanks!

0 Likes