Giter Site home page Giter Site logo

code-nautilus's People

Contributors

7aman avatar anujdatar avatar guihkx avatar harry-cpp avatar hmlendea avatar melmi avatar tkit1994 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  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

code-nautilus's Issues

Issue with PATH when opening code from this shortcut

If I open vscode via this shortcut, the Haskell language package cannot find the executable ghcup, although it is in the PATH. If If I open vscode normally (via gnome manager) then it finds the program. I'm using debian, where the default system shell is "dash". If I run dash and enter "ghcup" it does find the program.

Add custom launch options

Hi.
Is there a way to add custom launch options to the extension? I've tried adding it to several parts of the code but it doesn't work.
I use Wayland on HiDPI so I need to pass extra launch options to enable Wayland support.
Thanks, IV

Running NPM Scripts via GUI does not work if VSCODE is opened via context menu.

Strange bug for sure.

Running it via GUI

> Executing task: npm run build <

/bin/bash: npm: command not found
The terminal process "bash '-c', 'npm run build'" failed to launch (exit code: 127).

Terminal will be reused by tasks, press any key to close it.

But with same instance using internal terminal

$ npm run build

> [email protected] build
> webpack --mode production

asset main.js 20 bytes [compared for emit] [minimized] (name: main)
./src/index.js 21 bytes [built] [code generated]
webpack 5.52.0 compiled successfully in 239 ms

I have all default settings for integrated terminal for linux.

Error messages on install

Running Ubuntu 20.04, I get a couple error messages during install. The install seems to ignore them and continue, but here's the terminal history (error lines highlighted with *************)

$ wget -qO- https://raw.githubusercontent.com/harry-cpp/code-nautilus/master/install.sh | bash
Installing python-nautilus...
bash: line 18: [: too many arguments  ******************************************************
[sudo] password for mike: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  gir1.2-nautilus-3.0 libpython2-stdlib libpython2.7 libpython2.7-minimal
  libpython2.7-stdlib python-gi python2 python2-minimal python2.7
  python2.7-minimal
Suggested packages:
  python-gi-cairo python2-doc python-tk python2.7-doc binfmt-support
The following NEW packages will be installed:
  gir1.2-nautilus-3.0 libpython2-stdlib libpython2.7 libpython2.7-minimal
  libpython2.7-stdlib python-gi python-nautilus python2 python2-minimal
  python2.7 python2.7-minimal
0 upgraded, 11 newly installed, 0 to remove and 0 not upgraded.
Need to get 5,089 kB of archives.
After this operation, 20.9 MB of additional disk space will be used.
Get:1 http://ca.archive.ubuntu.com/ubuntu focal-updates/universe amd64 libpython2.7-minimal amd64 2.7.18-1~20.04.1 [335 kB]
Get:2 http://ca.archive.ubuntu.com/ubuntu focal-updates/universe amd64 python2.7-minimal amd64 2.7.18-1~20.04.1 [1,285 kB]
Get:3 http://ca.archive.ubuntu.com/ubuntu focal/universe amd64 python2-minimal amd64 2.7.17-2ubuntu4 [27.5 kB]
Get:4 http://ca.archive.ubuntu.com/ubuntu focal-updates/universe amd64 libpython2.7-stdlib amd64 2.7.18-1~20.04.1 [1,887 kB]
Get:5 http://ca.archive.ubuntu.com/ubuntu focal-updates/universe amd64 python2.7 amd64 2.7.18-1~20.04.1 [248 kB]
Get:6 http://ca.archive.ubuntu.com/ubuntu focal/universe amd64 libpython2-stdlib amd64 2.7.17-2ubuntu4 [7,072 B]
Get:7 http://ca.archive.ubuntu.com/ubuntu focal/universe amd64 python2 amd64 2.7.17-2ubuntu4 [26.5 kB]
Get:8 http://ca.archive.ubuntu.com/ubuntu focal-updates/main amd64 gir1.2-nautilus-3.0 amd64 1:3.36.3-0ubuntu1.20.04.1 [5,280 B]
Get:9 http://ca.archive.ubuntu.com/ubuntu focal-updates/universe amd64 libpython2.7 amd64 2.7.18-1~20.04.1 [1,038 kB]
Get:10 http://ca.archive.ubuntu.com/ubuntu focal/universe amd64 python-gi amd64 3.36.0-1 [212 kB]
Get:11 http://ca.archive.ubuntu.com/ubuntu focal/universe amd64 python-nautilus amd64 1.2.3-1ubuntu1 [17.8 kB]
Fetched 5,089 kB in 1s (7,109 kB/s)         
Selecting previously unselected package libpython2.7-minimal:amd64.
(Reading database ... 202295 files and directories currently installed.)
Preparing to unpack .../0-libpython2.7-minimal_2.7.18-1~20.04.1_amd64.deb ...
Unpacking libpython2.7-minimal:amd64 (2.7.18-1~20.04.1) ...
Selecting previously unselected package python2.7-minimal.
Preparing to unpack .../1-python2.7-minimal_2.7.18-1~20.04.1_amd64.deb ...
Unpacking python2.7-minimal (2.7.18-1~20.04.1) ...
Selecting previously unselected package python2-minimal.
Preparing to unpack .../2-python2-minimal_2.7.17-2ubuntu4_amd64.deb ...
Unpacking python2-minimal (2.7.17-2ubuntu4) ...
Selecting previously unselected package libpython2.7-stdlib:amd64.
Preparing to unpack .../3-libpython2.7-stdlib_2.7.18-1~20.04.1_amd64.deb ...
Unpacking libpython2.7-stdlib:amd64 (2.7.18-1~20.04.1) ...
Selecting previously unselected package python2.7.
Preparing to unpack .../4-python2.7_2.7.18-1~20.04.1_amd64.deb ...
Unpacking python2.7 (2.7.18-1~20.04.1) ...
Selecting previously unselected package libpython2-stdlib:amd64.
Preparing to unpack .../5-libpython2-stdlib_2.7.17-2ubuntu4_amd64.deb ...
Unpacking libpython2-stdlib:amd64 (2.7.17-2ubuntu4) ...
Setting up libpython2.7-minimal:amd64 (2.7.18-1~20.04.1) ...
Setting up python2.7-minimal (2.7.18-1~20.04.1) ...
Linking and byte-compiling packages for runtime python2.7...
Setting up python2-minimal (2.7.17-2ubuntu4) ...
Selecting previously unselected package python2.
(Reading database ... 203042 files and directories currently installed.)
Preparing to unpack .../python2_2.7.17-2ubuntu4_amd64.deb ...
Unpacking python2 (2.7.17-2ubuntu4) ...
Selecting previously unselected package gir1.2-nautilus-3.0:amd64.
Preparing to unpack .../gir1.2-nautilus-3.0_1%3a3.36.3-0ubuntu1.20.04.1_amd64.deb ...
Unpacking gir1.2-nautilus-3.0:amd64 (1:3.36.3-0ubuntu1.20.04.1) ...
Selecting previously unselected package libpython2.7:amd64.
Preparing to unpack .../libpython2.7_2.7.18-1~20.04.1_amd64.deb ...
Unpacking libpython2.7:amd64 (2.7.18-1~20.04.1) ...
Selecting previously unselected package python-gi.
Preparing to unpack .../python-gi_3.36.0-1_amd64.deb ...
Unpacking python-gi (3.36.0-1) ...
Selecting previously unselected package python-nautilus.
Preparing to unpack .../python-nautilus_1.2.3-1ubuntu1_amd64.deb ...
Unpacking python-nautilus (1.2.3-1ubuntu1) ...
Setting up libpython2.7-stdlib:amd64 (2.7.18-1~20.04.1) ...
Setting up gir1.2-nautilus-3.0:amd64 (1:3.36.3-0ubuntu1.20.04.1) ...
Setting up libpython2.7:amd64 (2.7.18-1~20.04.1) ...
Setting up python2.7 (2.7.18-1~20.04.1) ...
Setting up libpython2-stdlib:amd64 (2.7.17-2ubuntu4) ...
Setting up python2 (2.7.17-2ubuntu4) ...
Setting up python-gi (3.36.0-1) ...
Setting up python-nautilus (1.2.3-1ubuntu1) ...
Processing triggers for mime-support (3.64ubuntu1) ...
Processing triggers for gnome-menus (3.36.0-1ubuntu1) ...
Processing triggers for libc-bin (2.31-0ubuntu9.2) ...
Processing triggers for man-db (2.9.1-1) ...
Processing triggers for desktop-file-utils (0.24-1ubuntu3) ...
Removing previous version (if found)...
Downloading newest version...
/home/mike/.local/s 100%[===================>]   1.77K  --.-KB/s    in 0s      
Restarting nautilus...
Traceback (most recent call last):
  File "/usr/share/nautilus-python/extensions/kdeconnect-share.py", line 40, in <module>
    print('kdeconnect-nautilus: {0}'.format(e.strerr))
AttributeError: 'exceptions.IOError' object has no attribute 'strerr' *****************************************************************
Installation Complete

"Open Code" appear twice in nautilus menu

Hi craOzy,

Great extension, thanks for sharing it.

Just installed it and have just little issue: in Fedora30, GNOME nautilus 3.32.1, the link "open Code" appear twice in the menu. Same thing for "Open In Code" for files.

codeNautilus_issueDoublon

Do you have an idea how to resolv this issue?

Support for the flatpak version

Hello,

It would be really nice if the script would auto-detect and use the flatpak version if it exists.

E.g. if /var/lib/flatpak/exports/bin/com.visualstudio.code exists, then use com.visualstudio.code (it's visible in the $PATH var), otherwise use code.

If you want I can try to make a pull request for this functionality myself. Just let me know if it's something you would accept as part of your project.

PS: This issue is kinda-but-not-quite similar to #15

Multi language support

Is not an issue, but would be nice to add support for other languages. I can help with the italian one.

not working with folders

Hi, I am using latest Ubuntu, this thing works with files and shows Open with vscode option in context menu, but it doesn't show for folder. Do you know how I can fix it?

How do I uninstall ?

Hey! First of all, thanks for making this but I have to remove this due to some reasons. Is there anything I could do/ does an uninstall script exist to help me remove it?

Suport the ubuntu 22.10

Ubuntu 22.10
gnome 43
GNOME nautilus 43.0

When running install.sh, it shows an error in the versions of GTK and nautilus, and with that it is not working.

Allow re-ordering of VS Code context menu item

I really love this extension, so thank you.

I think it would be helpful to be able to configure the order of where "Open Code Here" appears in the context menu.

This may not be possible at all with Nautilus. However, if it is possible to modify the order, I think since the number of context menu items that appears is influenced by what kind of item you are clicking on, adding a "always appear at bottom" or "always appear at top" would be useful as regardless of what you are clicking on, you will always know where the VS Code context menu item will be.

Adding icons to the MenuItem

Hi, sorry for bothering and for my English but I was trying to add a little icon to the side of the button "Open with VScode" but it wont work can someone help me?

I tried to add the icon variable to the "Nautilus.MenuItem" like this:

item = Nautilus.MenuItem(
            icon= ICON,
            name='VSCodeOpen',
            label='Open In ' + VSCODENAME,
            tip='Opens the selected files with VSCode'
        )

And the ICON constant is defined at the top of the file after the imports like this:

# Icon path for the menu item
ICON = "/usr/share/code/resources/app/resources/linux/code.png"

What im doing wrong?
Thanks for the help!

Support code-insiders

Would be nice if it were easy to have the extension target code-insiders as an option rather than code.

Provide a DEB package and repo

I will probably work only on the .rpm package as Fedora is what I use, however I wouldn't mind maintaining other packages as well.

Install Script on Arch

First, thank you, convenient little script.

One little issue I had, though was able to easily get around, was when installing on Arch Linux. I ran the script, which first installed python-nautilus, and that worked successfully, but then the script exits before it completes copying over the config for nautilus restarting it.

I found if I ran, but then answered "No" to install the python-nautilus, it would skip that part and succeed. So easy fix, no big deal, but I assumed this was not the intended behavior and perhaps you might want to know.

Provide an AUR package

I will probably work only on the .rpm package as Fedora is what I use, however I wouldn't mind maintaining other packages as well.

How to specify python path?

It's not a problem with the project.

I am using Ubuntu Desktop 22.04.1 LTS with GNOME 42.4.

I have multiple versions of python in my $PATH. However, the system default python, which is /usr/bin/python3, is not the first python3 in $PATH. So when I start nautilus, the extension fails due to missing module gi.

How can I tell python-nautilus to use /usr/bin/python3?

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.