Code Monkey home page Code Monkey logo

fuzzyfilenav's Introduction

Donate via PayPal Build Package Control Downloads License

FuzzyFileNav

FuzzyFileNav is a simple plugin that allows for quick navigation of the file system from the quick panel. It also allows for deletion, copying, moving, creation of files and folders, and other actions.

Documentation

https://facelessuser.github.io/FuzzyFileNav/

License

FuzzyFileNav is released under the MIT license.

fuzzyfilenav's People

Contributors

dsernst avatar facelessuser avatar princemaple avatar rchl avatar real34 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

fuzzyfilenav's Issues

Fuzzy-searched files and folders can't be acted upon

I can't manage (copy/delete/...) fuzzy-searched files and folders, nor they are autocompleted with tab, so I'd have to type the whole name to just copy it.

Are there any plans to support management of fuzzy-searched elements?

Fuzzy-searched files

Cannot copy file error on Windows

It seems like this bug may have existed for a long time, but only showed up when the package was updated on my machine a few weeks ago.

I've not sure exactly which version I had before it updated, but from the looks of the commit history I was running on a version that existed before this commit 87fd472.

The problem is that when I copy a file and try to paste it somewhere and exception is thrown with the message:

[WinError 2] The system cannot find the file specified:

As can be seen from the diff in the commit linked above, the problem is this line:
https://github.com/facelessuser/FuzzyFileNav/blob/master/fuzzy_file_nav.py#L582

Since the destination path doesn't exist yet os.path.samefile throws and prevents the copy from happening.
I don't use Python, and don't know how you want to deal with it, but changing the line to this fixed it for me:

same = path.samefile(self.from_path, path.dirname(self.to_path))

The same problem appears when copying directories too, which is the same problem from this line:
https://github.com/facelessuser/FuzzyFileNav/blob/master/fuzzy_file_nav.py#L544

As an aside, I also noticed that format is typo'd as fromat here too:
https://github.com/facelessuser/FuzzyFileNav/blob/master/fuzzy_file_nav.py#L587-L590

If the fix is just as I described would you like me to open a PR?

ctypes

I get the following error on Ubuntu 12.04:

Reloading plugin /home/alex/.config/sublime-text-2/Packages/FuzzyFileNav/fuzzy_file_nav.py
Traceback (most recent call last):
  File "./sublime_plugin.py", line 62, in reload_plugin
  File "./fuzzy_file_nav.py", line 13, in <module>
    import ctypes
  File ".\ctypes\__init__.py", line 10, in <module>
ImportError: No module named _ctypes

Commenting out import ctypes in fuzzy_file_nav.py stops the error, but I presumably something will go wrong down the line... ?

Default Extension

Hi there! A feature I'd like to see is support for a default extension for Fuzzy Make File. Is that something that could be easily done?

[feature] open a folder in new window

It would be useful if it would be possible to open a whole folder in a new window from the file nav.

I think in ST4 it should be possible because I think it's possible to trigger actions while holding key modifiers. Not 100% sure though.

Better Save support

I would like FuzzyNav to replace the Save / Save As... commands. Either by replacing the save the and prompt_save_as commands in the user's bindings or by creating something that kicks in on_pre_save. In any case it would run something like this:

  • Save
    • If file exists, save.
    • If file is new, popup FuzzyNav, filled in with contents of first line (up to a certain number of characters, probably) + default syntax extension (if other than Plain Text)
  • Save As
    • Popup FuzzyNav, filled in with current name, or as above if unsaved

I suspect there may be trouble with overwriting files, etc.But I am quite happy to be a guinea pig, though.

Setting up Bookmarks

Hi there. I just set my bookmarks like so:
"bookmarks": [
{"name": "My Computer", "path": {"#multiconf#": [{"os:windows": "c:\users\Mehdi\AppData\Roaming"}]}},
{"name": "Root", "path": {"#multiconf#": [{"os:linux": "/"}, {"os:osx": "/"}]}}
]

When I want to contex click to start FuzzyFileNav, I get the error window:
Error tying to parse settings:Unexpected trailing characters in C:\Useres\Mehdi-2\AppData\Roaming\Sublime Text 2\Packages\User\fuzzy_nav.sublime-settings:1:13

What did I do wrong???

Opt-in to python 3.8

FuzzyFileNav runs perfectly well on python 3.8 plugin host.

How about officially migrating it?

Add option to load files from folder recursively

Sublime Text developpers are stubborn and they don't want to add a way to disable the automatic file preview

Your addon seems to let me search for files without the preview, so that's great

However it only searches for files in a folder, it would be cool to be able to have an option that lets me load files recursively

Example:

Fuzzy File Nav -> Fuzzy Projects Folder
    -> opens the popup
    -> load files recursively

Doing that everytime i open the menu would waste too much ressources

So i suggest doing the extra mile and cache the result and only update the cache on new_file/file_removed events, if that's a thing in sublime text api

Thanks for this addon, it transforms sublime text from useless to usable

Open multiple files with key binding

I'd like to set Alt+Right (or something) to open a file without closing FuzzyNav, mimicking the palette's right arrow functionality. (Regardless of the keep_panel_open_exceptions setting.)

Find into Folder

How find into folder, when I example use bookmark?

Ctrl + Shift + F

Into "Where" write my select path now. For fast navigate and find text into folder, when project very large, that more effective.

Open folder instead of file?

Mayv'e just missed this feature in the docs but is it possible to open an entire folder instead of an individual file using this plugin? I think ideally holding shift when selecting an option in the context menu would open the folder rather than descending into it. Great plugin btw, nice to have file browsing integrated with the context menu in this way.

Keyboard shortcuts don't seem to work when panel is active.

None of the keyboard shortcuts (super+n, super+b etc.) are working for me except tab completion when the panel is open. In result I can't create files/folders or do any other file manipulation.

System is OS 10.8.

Do you know what could be a problem with this?

Readme needs heading named "Installing"

I'd like to use this, but it assumes the person reading it knows how to install it. That is not always the case. Please add a heading named "Installing" that simply says to how to install this functionality.

ST3 Errors

I am not sure how much of a problem this is, I'm going through watching the console and verifying everything loads all right with all my plugins.

I manually checked out the ST3 branch when available and watched compatibility thread on it, but now with Package Control 2 I can just install from there.

So everything looks like Fuzzy fully supports ST3.

When Fuzzy is installed (via Package Control 2) I get the following in the console upon launch, I also am unable to use fuzzy either by hot key or right clicking on the file and doing nav here.

reloading plugin FuzzyFileNav.fuzzy_file_nav
Traceback (most recent call last):
File "C:\Dropbox\Apps\SublimeText3\sublime_plugin.py", line 73, in reload_plugin
m = importlib.import_module(modulename)
File "X/importlib/init.py", line 88, in import_module
File "", line 1577, in _gcd_import
File "", line 1558, in _find_and_load
File "", line 1525, in _find_and_load_unlocked
File "C:\Dropbox\Apps\SublimeText3\sublime_plugin.py", line 671, in load_module
exec(compile(source, source_path, 'exec'), mod.dict)
File "fuzzy_file_nav in C:\Dropbox\Apps\SublimeText3\Data\Installed Packages\FuzzyFileNav.sublime-package", line 29
print "FuzzyFileNav: %s" % s
^
SyntaxError: invalid syntax
reloading plugin FuzzyFileNav.multiconf
Traceback (most recent call last):
File "C:\Dropbox\Apps\SublimeText3\sublime_plugin.py", line 73, in reload_plugin
m = importlib.import_module(modulename)
File "X/importlib/init.py", line 88, in import_module
File "", line 1577, in _gcd_import
File "", line 1558, in _find_and_load
File "", line 1525, in _find_and_load_unlocked
File "C:\Dropbox\Apps\SublimeText3\sublime_plugin.py", line 671, in load_module
exec(compile(source, source_path, 'exec'), mod.dict)
File "multiconf in C:\Dropbox\Apps\SublimeText3\Data\Installed Packages\FuzzyFileNav.sublime-package", line 46
SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 2254-2256: truncated \UXXXXXXXX escape

Feature Request.

Hi there, many thanx for this plugin, i had a couple of ideas and i thought it may help make the plugin even more helpful.

  • from all the shortcuts that the plugin use i can only create new file & create new folder and thats mostly because all the other shortcuts have a native function in ST ,like super+d, super+v, etc...
    so is there away to make the plugin "disable/override" the default keybinding when its active and "re-enable/di-override" when its closed ? ,
    this way u don't need to make anew keybinding and u get to use the same shortcuts whether u were editing a text or manipulating a file.
  • am more than thankful for the context-menu options to activate FFS but imho the main reason that anyone would love this plugin is that u get to use ur keyboard to do everything and having to activate the plugin only by mouse is kinda counter-intuitive, so can we also use the quick-panle to activate FFS as-well ?

Open folder

I may have missed how to do this, but is it possible to open a folder ?
When a folder is selected I can navigate into it but there seems to be no way to open it. Would it be possible to display the current folder as '.' (similar to the '..' for the parent folder) and open that folder in the sidebar when selected ?

Disabled menus and broken key bindings in ST3

I can't get FuzzyFileNav to work at all with the new ST3. As shown below, all menus are deactivated. I also tried adding key bindings as specified in the README, but absolute nothing happens when using them (the default open dialog doesn't even show, so clearly it's being overwritten).

screen shot 2013-07-08 at 7 09 28 pm

Nothing is shown in the console when starting ST3 or when using the key bindings.

I'm a huge fan of FuzzyFileNav, so I'd really like to see this work in ST3 so I can have a party ๐ŸŒด ๐Ÿบ

Not in Package Control?

Hi, I was wondering. Why is this awesome package not in the Package Control index? In other words, why can't I install it with Package Control?

I suppose it is just because you forgot to upload it, but would be curious. ;)

Doesn't work on ST3 rMBP 10.8.3

reloading plugin FuzzyFileNav.fuzzy_file_nav
Traceback (most recent call last):
  File "/Applications/Sublime Text 3.app/Contents/MacOS/sublime_plugin.py", line 72, in reload_plugin
    m = importlib.import_module(modulename)
  File "X/importlib/__init__.py", line 88, in import_module
  File "<frozen importlib._bootstrap>", line 1577, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1558, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1525, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 586, in _check_name_wrapper
  File "<frozen importlib._bootstrap>", line 1023, in load_module
  File "<frozen importlib._bootstrap>", line 1004, in load_module
  File "<frozen importlib._bootstrap>", line 562, in module_for_loader_wrapper
  File "<frozen importlib._bootstrap>", line 854, in _load_module
  File "<frozen importlib._bootstrap>", line 981, in get_code
  File "<frozen importlib._bootstrap>", line 313, in _call_with_frames_removed
  File "/Users/lust/Library/Application Support/Sublime Text 3/Packages/FuzzyFileNav/fuzzy_file_nav.py", line 29
    print "FuzzyFileNav: %s" % s
                           ^
SyntaxError: invalid syntax
reloading plugin FuzzyFileNav.multiconf
Traceback (most recent call last):
  File "/Applications/Sublime Text 3.app/Contents/MacOS/sublime_plugin.py", line 72, in reload_plugin
    m = importlib.import_module(modulename)
  File "X/importlib/__init__.py", line 88, in import_module
  File "<frozen importlib._bootstrap>", line 1577, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1558, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1525, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 586, in _check_name_wrapper
  File "<frozen importlib._bootstrap>", line 1023, in load_module
  File "<frozen importlib._bootstrap>", line 1004, in load_module
  File "<frozen importlib._bootstrap>", line 562, in module_for_loader_wrapper
  File "<frozen importlib._bootstrap>", line 854, in _load_module
  File "<frozen importlib._bootstrap>", line 981, in get_code
  File "<frozen importlib._bootstrap>", line 313, in _call_with_frames_removed
  File "/Users/lust/Library/Application Support/Sublime Text 3/Packages/FuzzyFileNav/multiconf.py", line 46
    """
SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 2254-2256: truncated \UXXXXXXXX escape

Thanks

Get new version out

Been pretty busy, but we need to just double-check master and make sure it is ready for release.

ST3: Change directory on "/"

When entering a full folder name followed by /, the directory does not change as it does in the ST2 version. Upon entering / the console shows Quick panel unavailable
FuzzyFileNav Bug

regex_exclude not working

I copied the example from the docs, but .git and *.pyc files are showing up on Windows and OS/X with the following settings:

{
    "home": {"#multiconf#": [{"os:windows": "c:\\dev"}, {"os:osx": "~"}]},
    "regex_exclude": [".*\\.(DS_Store|svn|git|pyc)$"],
    "keep_panel_open_after_action": false,
    "start_from_here_default_action": "project"
}

On both platforms the other settings take affect so I'm sure it is the correct file.

Thanks.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.