facelessuser / favoritefiles Goto Github PK
View Code? Open in Web Editor NEWSublime Text plugin to save favorite files http://facelessuser.github.io/FavoriteFiles/
Sublime Text plugin to save favorite files http://facelessuser.github.io/FavoriteFiles/
favorite_files_list_computer_name.json
It would be useful if Sublime Text settings are synced across different computers.
Hi! Thanks for a great plugin.
I'm experiencing one issue on every Sublime Text restart: the "Toggle project specific favorites" option gets reset to general non project specific favorites even though I don't close the project when restarting and it gets reopened in the same state. The expected result could be that you toggle that option once per project and then it gets remembered.
Hallo,
Any way to add a file to favorites providing default answers for the default questions?
For example:
{
"keys": [
"super+shift+a"
],
"command": "favorite_files_add",
"args": {
"Add current file": "true",
"No group": "true"
}
}
Thanks!
It would be nice to have a possibility to have relative paths in per project favorites. Thus we could copy a *-favs.json
file from one project to another without a need for manually refavoriting all the files.
For example, many of my projects reuse composer.json, package.json, .gitignore located in the same folders with the same relative paths. With such a feature I could simply copy the favorites file from an old project to a new one or even commit the favorites file to a project boilerplate repo.
I am using FavoriteFiles plugin with Sublime Text 3 and noticed that there is no cursor after opening a favorite file. I need to use a mouse each time. Is this a common behaviour or is it just my configuration?
I work cross-platform Mac/Windows these days, and have my Sublime User dir synced via Dropbox. This means that when I create a new Favorite, it shows up on all my computers -- great!
But: if a favorite was created on a Mac, its path gets saved with forward slashes (/Users/thundt/Downloads/foo.txt) and if saved on Windows, it's saved with backslashes (C:\Users\thundt\Downloads\foo.txt).
When I go to open these, there is no error, but rather (if opening a Mac favorite on Windows) presents me with an empty file, marked as modified, or (if opening a Win file on Mac) silently fails (no console output).
Any ideas? Looking at the code, it appears you're just doing this, and letting Sublime worry about any conversion:
for n in names:
if os.path.exists(n):
view = self.window.open_file(n)
if view is not None:
focus_view = view
if active_group >= 0:
self.window.set_view_index(view, active_group, count)
count += 1
else:
error("The following file does not exist:\n%s" % n)
if focus_view is not None:
# Horrible ugly hack to ensure opened file gets focus
def fn(focus_view):
"""Ensure focus of view."""
self.window.focus_view(focus_view)
self.window.show_quick_panel(["None"], None)
self.window.run_command("hide_overlay")
sublime.set_timeout(lambda: fn(focus_view), 500)
One issue is probably the drive letter... silly Windows. It doesn't look like there's a hook I could easily patch into to add a little conversion routine, which is probably what I'd need.
Thanks
Make a new release with recent fix.
After taking the update to 3077, the favorite files plugin no longer works. After working around #7 and adding a favorite, I get the following message when I try to open the saved favorite:
After did teh manual installation as given, favfiles not showing in command pallet but showing in package list. (mac)
Is it possible to edit the name of a favorites group once it's been created? Thanks for this incredibly helpful plugin.
Cheers
Disregard this message, I have sent a pull request instead now
Can see the command add to favorites in command pane, but then cannot see the list of favorites anywhere
ST3 on Linux Mint
Bookmarks management, and usage would be greately enhanced if they are in the sidebar.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.