dschwen / switch-header-source

Quick switching between C/C++ header and source files
MIT License
13 stars 49 forks source link

Can't find header when it is not in the same folder #11

Closed Aukstkalnis closed 6 years ago

Aukstkalnis commented 8 years ago

My root project has header folder and source folder. Switch is not working for me.

dschwen commented 8 years ago

Can you give me an example for a corresponding path pair?

On Thu, May 19, 2016, 07:00 alexxx537 notifications@github.com wrote:

My root project has header folder and source folder. Switch is not working for me.

— You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub https://github.com/dschwen/switch-header-source/issues/11

Aukstkalnis commented 8 years ago

Sure:)

My_project

-----#HeadersFolder ----------#Folder1 --------------------S1.h ----------#Folder2 --------------------S2.h ----------S3.h -----#SourceFolder ----------#Folder1 --------------------S1.c ----------#Folder2 --------------------S2.c ----------S3.c That's how my project look. However, header file can be placed in different folder than source. I think the best way to do this would be to just search entire root folder for headers and sources.

schultzern commented 8 years ago

Same here. I have code .cc files in one folder and .h files in inc or include folders, e.g.

my_project

-----#my_code.cc -----#inc ----------#my_code.h

Switch is not working on Linux, CentOS.

TDHolmes commented 7 years ago

I'm also seeing this issue with the following structure:

I am on MacOS

maxshaffer commented 6 years ago

I'm seeing the same problem as everyone else. I have the same folder structure as above.

dschwen commented 6 years ago

@TDHolmes the header and source files should have the same base name. header_1.h and source_1.c cannot be matched. Or is your actual project different?

maxshaffer commented 6 years ago

I think @TDHolmes meant the files are named 'somename.h' and 'somename.c'.

Aukstkalnis commented 6 years ago

I think that all C/C++ developers uses microsoft C/C++ extension and that extension already has this feature that works well.

dschwen commented 6 years ago

@Aukstkalnis, which plugin is that?

Aukstkalnis commented 6 years ago

https://marketplace.visualstudio.com/items?itemName=ms-vscode.cpptools

dschwen commented 6 years ago

Wait... am I missing something here? That is not an Atom plugin.

Aukstkalnis commented 6 years ago

Yes, you right... Wrong editor... Sorry😅

dschwen commented 6 years ago

Ok, I'm working on a new release that will use the fuzzy finder code to do indexing and more flexible switching.