lingo / sublime-fscompletion

Auto-complete paths and filenames from the filesystem, à la Ctrl-X,Ctrl-F in VIM
GNU General Public License v3.0
31 stars 5 forks source link

How to make it work? any demo? #18

Open BarbzYHOOL opened 6 years ago

BarbzYHOOL commented 6 years ago

This is the 5th package about filename completion that I install and none is working so I'm probably doing something wrong

How to test the package to verify it works plz?

lingo commented 6 years ago

Hi there, there are some test files in the package directory, if you have it extracted. Typically you should be able to just type in part of a pathname and use the hotkey to show completions.

What platform are you on?

BarbzYHOOL commented 6 years ago

linux, no idea how to test the files when instaling with package manager

Can you give me a step by step quick tutorial?

lingo commented 6 years ago

The package manager installs packages as zipfiles. The test files are within the archive.

$ unzip -l ~/.config/sublime-text-3/Installed Packages/FileSystem\ Autocompletion.sublime-package
Archive:  FileSystem Autocompletion.sublime-package
  Length      Date    Time    Name
---------  ---------- -----   ----
    35146  2017-02-13 14:12   LICENSE.txt
     3707  2017-02-13 14:12   README.md
       . . .
      400  2017-02-13 14:12   testing/test.txt
       . . .
---------                     -------
    57198                     41 files

I would try to extract this somewhere, then open the file test.txt and try autocompleting on the filenames within this file.

I use altctrl/ to expand the completions, that's the default keybinding.

BarbzYHOOL commented 6 years ago

I opened testing/text.txt

i place my cursor on one of the line and press alt+ctrl+/ (in the numerical pad) and nothing happens

I also try to type "tes and alt+ctrl+/ but nothing happens

I really don't think I'm testing it the proper way lol

lingo commented 6 years ago

It sounds like you're doing exactly the right thing. If you're willing to persevere, you could enable debug mode in the package, and report here the console output.

To enable debug mode, use the menuitem SettingsPackage SettingsFileSystem AutocompletionSettings - User and make sure the following key exists:

{
    "debug":     true
}
BarbzYHOOL commented 5 years ago

yeah, literally nothing happens in the console (as i suspected)

lingo commented 5 years ago

That is weird, indeed! What OS are you on? I get screeds of output on debug mode, so it sounds like the plugin isn't running at all. Do you have other plugins active? Perhaps the keystroke is being consumed by another plugin?

BarbzYHOOL commented 5 years ago

Ubuntu 14.04

Yes many plugins but how can I find if a hotkey is used? when i press the combination nothing happens anyway

lingo commented 5 years ago

Ah, it does sound like a conflict with hotkeys. This is a weakness of sublime text still, that the hotkey management is difficult.

This may help:

https://packagecontrol.io/packages/FindKeyConflicts

I'll close this issue for now, but please re-open if it turns out not to be a key conflict.

BarbzYHOOL commented 5 years ago

Entry Details

[alt+ctrl+/] file_system_comp_trigger FileSystem Autocompletion

lingo commented 5 years ago

Okay, so no direct conflict there? To debug this, I think I'll need you to start sublime with no other plugins running, and see what the debug messages are (if some show up!) in the console.

Thanks for your persistence!

BarbzYHOOL commented 5 years ago

Hmm, do you know how can I remove all plugins temporarily?

lingo commented 5 years ago

Try temporarily moving your sublime config directory. On Linux this is usually in ~/.config somewhere. Move the directory to a different name, and then start sublime. This should have no plugins running. A new sublime config directory will be created.

---- On Sat, 03 Nov 2018 16:11:24 +0100 notifications@github.com wrote ----

Hmm, do you know how can I remove all plugins temporarily?

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub, or mute the thread.