Coder Social home page Coder Social logo

vscode-42header's Introduction

Searching for Maintainer.

This project was done 7 years ago, which is an eternity relative to VSCode Lifespan. I don't have time to maintain this, but I see a lot of people doing Pull Requests for it, or creating issues.

As there are no Unit Tests and no CI/CD, it makes it even harder to check for issues and PRs.

What I'd like to do is to give ownership to an "official" 42 organization on GitHub, where a group of students could maintain and update this project themselves.

If you are interested in such a thing, please ping me.

42 Header for VSCode

This extension provides the 42 header integration in VS Code.

# **************************************************************************** #
#                                                                              #
#                                                         :::      ::::::::    #
#    vscode-42header                                    :+:      :+:    :+:    #
#                                                     +:+ +:+         +:+      #
#    By: kube <[email protected]>                       +#+  +:+       +#+         #
#                                                 +#+#+#+#+#+   +#+            #
#    Created: 2013/11/18 13:37:42 by kube              #+#    #+#              #
#    Updated: 2016/09/18 13:11:04 by kube             ###   ########.fr        #
#                                                                              #
# **************************************************************************** #

Install

Launch Quick Open with +P and enter

ext install 42header

Usage

Insert a header

  • macOS : + + H
  • Linux / Windows : Ctrl + Alt + H.

Header is automatically updated on save.

Configuration

Default values for username and email are imported from environment variables.

To override these values, specify these properties in User Settings :

{
  "42header.username": string,
  "42header.email": string
}

Issues

In case of a bug, or missing feature, please create a Github Pull Request.

License

MIT

vscode-42header's People

Contributors

blefeuvr avatar kube avatar patrick-hacks 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

Watchers

 avatar  avatar  avatar

vscode-42header's Issues

Header inserts itself on `.txt` files

When I paste some ASCII art banner in a file with the .txt extension, the 42 header inserts itself on top of the banner, smashing it (no shortcut pressed).

Its not possible change the parameter ".fr"

The 42 has many School in world, like: Lisboa, São Paulo, Rio de Janeiro, Porto, France, etc...

It would be nice to be able to configure this parameter as is already done with Username and email.

Header not updating upon save

Hello, as said in the title, the header does not update for me upon save, the date for updated and created are exactly the same on all files, no matter how long i have been working on them.

Can't handle long emails

My school email is 29 characters long, and the extension loses the closing '>' bracket, so the Norminette says there is no header.

Header not compliant with PEP 8

According to the python style manual (PEP 8), no line should be more than 79 characters long and the header is 80 characters long. The script should detect the .py files and print in the header one character less per line

Update logo

Update 42 logo to represent the actual school logo.

# **************************************************************************** #
#                                                                              #
#                                                     :#####;   ;###:#####+    #
#    Untitled-1                                     +#####'     ;#'  ;####;    #
#                                                .######'          .*####:'    #
#    By: kube <[email protected]>             .:####:`          .*####;'      #
#                                              ##############;  ,####'  ,#;    #
#    Created: 2016/12/12 13:55:39 by kube      """""""""#####;  ;#####.###:    #
#    Updated: 2016/12/12 13:55:39 by kube               #####;                 #
#                                                                              #
# **************************************************************************** #

This is just a draft

Not working on windows

I had just switched from Windows to MacOS (at 42) where the plugin works very well. But it is not showing anything on Windows.

Header not working with the same Shortcut Key (Manjaro)

I tried to add the header in Manjaro but the VS Code shortcut to add the header goes to find and replace. Is it possible to choose our own shortcut keys to add the header along with the default one. I am quite new otherwise I would fork and fix it

image

Add Username and Email

Hello,

What is the process in window to add my username and email ? It's not very clear for me.

Thank you,

first line after header auto-deletes

When you start typing under the header and you hit enter the text disappears.

Expected behaviour: you can write what you want without the header interfering.

Improve email insertion

While trying to input my 42 Urduliz mail I have seen it cuts the mail always so I can't write it correctly ´cause when I modify the header and save it. It returns to the way it was before cutting my mail. Maybe you can modify the code to have the option to insert any kind of mail and filling the rest of the row with spaces or something like that.
By the way my mail in 42 is [email protected]

Open VSX Listing: Signing the Publisher Agreement

RE: https://open-vsx.org/extension/kube/42header

Thank you for being part of the Open VSX community by adding your extensions to the Open VSX Registry. Please note that the service was recently transferred to the Eclipse Foundation and urgent action on your part is needed so we can continue to list your extensions. To ensure uninterrupted service, please sign the Eclipse Publisher Agreement on or before January 8, 2021. If not signed by that date, your extensions will be delisted and will no longer appear on the site nor be available via the API. If you sign at a later date, your extensions will then be re-activated. The signing process is explained in the Wiki (steps 1 and 2).

Please also note that all extensions MUST have a license in order to be listed.

More details are in these recent blog posts:
https://blogs.eclipse.org/post/brian-king/open-vsx-registry-under-new-management
https://blogs.eclipse.org/post/brian-king/new-era-open-vsx-registry

If you are the project maintainer, we urge you to claim the namespace for your extension(s). To find out how to do this, see:
https://github.com/eclipse/openvsx/wiki/Namespace-Access

Today, there’s growing momentum around open source tools and technologies that support Visual Studio (VS) Code extensions. Leading global organizations are adopting these tools and technologies. This momentum has spurred demand for a marketplace without restrictions and limitations. Thanks for joining us on this journey as we continue to build the Open VSX community. We look forward to continued innovation from you in 2021!

Extension causing editor suggestions to automatically scroll back to the top of the list

Hey there! Thankyou for the extension it has assisted me greatly while studying!

Unfortunately I have ran into an inconvenient problem which seems to be happening whenever the timestamp is updated by the extension. Specifically when trying to use the editors' suggestions when typing out something (e.g. #include)

Issue - List scrolls automatically to the top whenever the file is updated

issue.mov

Intended action - no sudden jumps when using the arrow keys to navigate the editor suggestion list (had to remove 42 header to show issue).

no_issue.mov

I am unsure of how VSCode extensions are made so whether or not this can be addressed/fixed or a limitation of extensions themselves is another issue.

Automatic updates in the header break the undo/redo history

Steps to reproduce:
1- Open a file in vscode
2- Write some characters in it, in order to create a undo buffer
3- Undo one or more times (ctrl + z)
4- Wait about 5 seconds
5- Try to "redo" (ctrl + y) the changes made in step 2.

Expected result: the user's last actions are restored
Actual result: the user's last actions are not restored, because the header was updated and the "redo" buffer was lost.

Somehow, this wasn't an issue for me until today. I'm just guessing some change in the last version of VSCode is to blame?

VSCode version: 1.68.0
OS: Windows 10 x64

Erase 1st line after the header

Hi, thanks for your works.

It's really usefull but I use to use the first line after the header to start coding.
Unfortunately, your extension erase whatever is written on this first line.

My wish would be to NOT have this behaviour on the 1st line after the header.

Would you think that it would be a good idea?

Intellisense dropdown menu selection automatically moves up.

Type: Bug

Write anything that will trigger multiple autocomplete suggestions in a dropdown menu. Go one slot down by pressing the "arrow down" key. Then, in at most a few seconds, it will automatically go one slot up, selecting the top suggestion again, effectively reproducing the effect of the "arrow up" key without the user pressing it.

Extension version: 0.42.9
VS Code version: Code 1.71.2 (74b1f979648cc44d385a2286793c226e611f59e7, 2022-09-14T21:07:15.900Z)
OS version: Darwin arm64 21.6.0
Modes:
Sandboxed: No

System Info
Item Value
CPUs Apple M2 (8 x 24)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
metal: disabled_off
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_renderer: enabled_on
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: disabled_off
Load (avg) 1, 1, 1
Memory (System) 16.00GB (5.42GB free)
Process Argv --crash-reporter-id eb08864f-b482-4c3d-a4ba-45b330b223a8
Screen Reader no
VM 0%
A/B Experiments
vsliv368:30146709
vsreu685:30147344
python383:30185418
vspor879:30202332
vspor708:30202333
vspor363:30204092
vswsl492:30256859
vslsvsres303:30308271
pythonvspyl392:30443607
vserr242:30382549
pythontb:30283811
vsjup518:30340749
pythonptprofiler:30281270
vshan820:30294714
vstes263:30335439
vscoreces:30445986
pythondataviewer:30285071
vscod805cf:30301675
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
cmake_vspar411:30557514
vsaa593cf:30376535
pythonvs932:30410667
cppdebug:30492333
vsclangdc:30486549
c4g48928:30535728
hb751961:30553087
dsvsc012cf:30540253
azure-dev_surveyone:30548225
2144e591:30553903
fc301958:30573243

Bug with file name cub3d.h

Hello coders!
When I create file with the name "cub3d.h" the extension put header with name "cub3D.h".
Please fix for future students! Thank You!

Redo command doesn't work on files with a 42 header

Type: Bug

Make a change in a file with the 42 header. Undo it. Try to redo it.

Extension version: 0.42.9
VS Code version: Code 1.71.2 (74b1f979648cc44d385a2286793c226e611f59e7, 2022-09-14T21:07:15.900Z)
OS version: Darwin arm64 21.6.0
Modes:
Sandboxed: No

System Info
Item Value
CPUs Apple M2 (8 x 24)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
metal: disabled_off
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_renderer: enabled_on
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: disabled_off
Load (avg) 1, 1, 1
Memory (System) 16.00GB (5.42GB free)
Process Argv --crash-reporter-id eb08864f-b482-4c3d-a4ba-45b330b223a8
Screen Reader no
VM 0%
A/B Experiments
vsliv368:30146709
vsreu685:30147344
python383:30185418
vspor879:30202332
vspor708:30202333
vspor363:30204092
vswsl492:30256859
vslsvsres303:30308271
pythonvspyl392:30443607
vserr242:30382549
pythontb:30283811
vsjup518:30340749
pythonptprofiler:30281270
vshan820:30294714
vstes263:30335439
vscoreces:30445986
pythondataviewer:30285071
vscod805cf:30301675
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
cmake_vspar411:30557514
vsaa593cf:30376535
pythonvs932:30410667
cppdebug:30492333
vsclangdc:30486549
c4g48928:30535728
hb751961:30553087
dsvsc012cf:30540253
azure-dev_surveyone:30548225
2144e591:30553903
fc301958:30573243

Edited date not changing

Le header ne se met pas à jour à l'enrengistrement sur la dernière version du vscode 1.17.2

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.