Giter VIP home page Giter VIP logo

codeeditcli's People

Contributors

activcoding avatar austincondiff avatar bombardier200 avatar lukepistrol 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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

codeeditcli's Issues

Change `codeedit-cli` to `codeedit`

I'd like to propose that we shorten the name of our CLI. codeedit-cli is to long of a command to type into a terminal in my opinion.

VS Code uses code
GitHub uses gh
IntelliJ IDEA uses idea
Fleet used fleet
Atom uses atom
Sublime Text uses subl
Nova uses nova
WebStorm uses webstorm

But CodeEdit uses codeedit-cli.

None of these end with -cli, so why would/should we? I am not opposed to it, I just want to be consistent with what others might expect if possible. It looks like others just use the app name unless too long to type. codeedit is the same amount of characters as webstorm so I think it is safe to use.

Some other options we can consider in addition to codeedit are cedit and ce.

🐞 Notarize artifact

Currently the created artifact cannot be executed since it has to be notarized. The required steps need to be added to the Deploy workflow.

Screenshot 2022-12-06 at 06 12 40

Brew formula installation fail

The homebrew installation fail at build phase

swift build -c release --disable-sandbox
warning: /Users/cedricloneux/Library/org.swift.swiftpm/configuration is not accessible or not writable, disabling user-level configuration features.
warning: /Users/cedricloneux/Library/org.swift.swiftpm/security is not accessible or not writable, disabling user-level security features.
warning: /Users/cedricloneux/Library/Caches/org.swift.swiftpm is not accessible or not writable, disabling user-level cache features.
warning: 'codeeditcli-0.0.9': failed loading cached manifest for 'codeeditcli-0.0.9': Error Domain=NSCocoaErrorDomain Code=513 "You don’t have permission to save the file “manifests” in the folder “org.swift.swiftpm”." UserInfo={NSFilePath=/Users/cedricloneux/Library/Caches/org.swift.swiftpm/manifests, NSUnderlyingError=0x600002d37780 {Error Domain=NSPOSIXErrorDomain Code=1 "Operation not permitted"}}
warning: 'codeeditcli-0.0.9': failed closing cache: Error Domain=NSCocoaErrorDomain Code=513 "You don’t have permission to save the file “manifests” in the folder “org.swift.swiftpm”." UserInfo={NSFilePath=/Users/cedricloneux/Library/Caches/org.swift.swiftpm/manifests, NSUnderlyingError=0x600002d20750 {Error Domain=NSPOSIXErrorDomain Code=1 "Operation not permitted"}}
error: 'codeeditcli-0.0.9': Invalid manifest
/private/tmp/codeedit-cli-20230226-34880-1i80xsc/CodeEditCLI-0.0.9/Package.swift:4:8: error: no such module 'PackageDescription'
import PackageDescription
       ^
make: *** [build] Error 1

Run codeedit as root

Being able to run sudo codeedit and being able to edit root/system files

or maybe able to unlock it like this

✨ Command to list extensions

Proposed Addition

Argument Description
-le or --list-extensions Outputs list of installed extensions

Description

Lists the installed extensions unique identifiers along with optional display name, author, status, size, and version.

Examples

Usage

codeedit --list-extensions
codeedit -le

Which would output...

johnsmith.react
janedoe.eslint
jakedaniels.prettier

You can also pass an additional flag to get more information

codeedit --list-extensions -l

Which would output...

ID                    Name      Author      Version
===================================================
johnsmith.react       React     John Smith    1.1.4
janedoe.eslint        ESLint    Jane Doe      2.1.2
jakedaniels.prettier  Prettier  Jake Daniels  1.6.3

Add an open source license

Add for example MIT License, BSD License, Apache License or any other open source license.

Having a LICENSE file can help establish trust and openness with regard to the project and its authors, which can be important when collaborating with other developers or when publicly distributing the project.

For more information, visit the GitHub Docs:

codeedit: Create a file if it does not exist

Currently codeedit command just opens existing files and fails if you try to use it to create one. It would be more convenient if command will create and open a file if it does not exist and just open if it exist (e.g. code on VSCode works this way)

✨ Homebrew formula

  • add codeedit-cli to homebrew to make it possible to install it using brew install codeedit-cli

Requirements

Change open to line and column syntax

Instead of

codeedit-cli Example.swift -l 43 -c 10

can we instead do something like...

codeedit Example.swift:43:10
  • Change codeedit-cli to codeedit
  • instead of -l and -c, the filename line and column are separated by :

This seems to be standard and is the case with VS Codes CLI. See their documentation on open for reference.

✨ Command to open

Overview

Users need to be able to open files and folders from the command line in CodeEdit.

Folder

codeedit ./my-project

File

codeedit index.html

You should also be able to add an optional line and column

codeedit index.html:50

or

codeedit index.html:50:15

References

✨ Flag to reuse the last active window

Proposed Addition

Argument Description
-r or --reuse-window Use the last active window.

Description

When opening a file, tell CodeEdit to open the file in the last active window instead of opening the file in a new window (default behavior).

Examples

codeedit Example.swift:43:10 --reuse-window
codeedit Example.swift:43:10 -r

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.