profile
viewpoint
Pascal Polleunus ppo eSpecific Brussels, Belgium, Europe https://about.me/ppo

ppo/bash-colors 10

Bash function to easily color/format text.

ppo/docker-demo 1

Demo of Docker (Dockerfile and docker-compose.yml).

ppo/gist 1

My gists in one repo.

ppo/arduino 0

Misc Arduino codes.

ppo/complete-line 0

Keymaps extension for VS Code to automatically complete a comment line with a definite character or with your selection

ppo/homebrew-cask 0

🍻 A CLI workflow for the administration of macOS applications distributed as binaries

ppo/php-minish 0

Minimalist-ish PHP framework, in a single file, to easily create dynamic websites with clean URLs.

xavier/nestkids-wallobus 0

Nestkids project built with Noé & Julien

issue commentmas-cli/mas

🐛 [BUG] `mas outdated` gives incorrect information

Similar problem. App Store shows a new version in "Upcoming Automatic Updates" that doesn't appear with mas outdated|upgrade.

JimDabell

comment created time in a month

issue openedTyriar/vscode-sort-lines

Improve handling of EOL characters in selection

Selecting the 2 first lines (whole line including the \n EOL).
I'm doing this as follows: cursor at the beginning, holding shift then 2 times arrow down => cursor on the third line.

b
a

c

Expected result:

a
b

c

With "sortLines.filterBlankLines": false


a
b
c

With "sortLines.filterBlankLines": true

a
b
c

created time in 2 months

issue openeddeschler/django-modeltranslation

How to use the original queryset (raw, not patched)?

Is there a way to use the original queryset (i.e. with the original field names, without renaming)?

I want to do this (cf. #286) in a DetailView.get_object():

slug_field = build_localized_fieldname("slug", get_language())
raw_qs.filter(Q(**{slug_field: slug}) | Q(**{slug_field: None}, slug=slug))

created time in 2 months

issue commentdeschler/django-modeltranslation

Fallback on queryset filtering

Still open after 5.5 years :rofl:

I took a quick look at the code and it seems there're a lot of things to handle (filter/exclude, Q/F, order…).

2 ideas to provide a useful "if translated empty use raw" functionality (title_fr__icontains='foo' OR (title_fr='' AND title__icontains='foo')); not very clean but better than nothing?

  • Detect filter on only slug_field (cf. DetailView CBV).
  • Provide specific methods (multilingual_filter|exclude) that rewrites all fields to "translated or raw".

Instead of using raw value, this could handle fallback languages.

sabriinfo

comment created time in 2 months

issue commentgit-up/GitUp

Setting: Open/new window maximized

@lolgear you mean via a global OS setting? I don't want all applications to open maximized… and anyway I don't think there is (at least don't find) a way to do that (macOS Catalina).

ppo

comment created time in 2 months

issue commentbuo/homebrew-cask-upgrade

App source not there for Spotify… then OK

I understand :wink: You're deeply in it and I know nothing at all about how it works, I'm just stupidly executing the command. As a user, I don't care about the underlying "why", I just notice "it doesn't work". I reported it to help. Do whatever you want/need with it.

And thank you very much for your work on this project, it's very useful.

ppo

comment created time in 2 months

issue commentbuo/homebrew-cask-upgrade

App source not there for Spotify… then OK

Sorry but #57 don't seem to be the same problem at all. And what keywords could I have used to find these many previous issues?

ppo

comment created time in 2 months

issue openedbuo/homebrew-cask-upgrade

App source not there for Spotify… then OK

It seems the App source '/usr/local/Caskroom/spotify/latest/Spotify.dmg' is not there.

Command: brew cu --yes --all --force
Weird thing, when I execute the same command a second time right after, it works. And fails again when executed a third time. And works again the fourth time… I think there's a pattern here :wink:

Odd executions output:

==> Upgrading spotify to latest
==> Downloading https://download.scdn.co/Spotify.dmg
Already downloaded: /Users/ppo/Library/Caches/Homebrew/downloads/5ef9b045e7e6dfeb70b32abfa9ca2da11e85c9b27ab7f6403658ddb1fcfdc00a--Spotify.dmg
==> No SHA-256 checksum defined for Cask 'spotify', skipping verification.
==> Installing Cask spotify
Warning: It seems there is already an App at '/Applications/Spotify.app'; overwriting.
==> Removing App '/Applications/Spotify.app'.
==> Purging files for version latest of Cask spotify
Error: It seems the App source '/usr/local/Caskroom/spotify/latest/Spotify.app' is not there.

Even executions output:

==> Upgrading spotify to latest
==> Downloading https://download.scdn.co/Spotify.dmg
Already downloaded: /Users/ppo/Library/Caches/Homebrew/downloads/5ef9b045e7e6dfeb70b32abfa9ca2da11e85c9b27ab7f6403658ddb1fcfdc00a--Spotify.dmg
==> No SHA-256 checksum defined for Cask 'spotify', skipping verification.
==> Installing Cask spotify
==> Moving App 'Spotify.app' to '/Applications/Spotify.app'.
🍺  spotify was successfully installed!

See also: issue in homebrew-cask

created time in 2 months

issue openedHomebrew/homebrew-cask

4k-youtube-to-mp3 SSL certificate problem

General troubleshooting steps

Description of issue

curl: (60) SSL certificate problem: certificate has expired but the certificate seems valid.

$ echo | openssl s_client -showcerts -servername dl.4kdownload.com -connect dl.4kdownload.com:443 2>/dev/null | openssl x509 -inform pem -noout -text
[…]
        Validity
            Not Before: Oct 10 00:00:00 2018 GMT
            Not After : Nov  6 23:59:59 2020 GMT
[…]

Command that failed

brew cu --yes --all

Output of command with --force --verbose --debug

==> Found outdated apps
     Cask               Current      Latest       A/U    Result    URL
1/1  4k-youtube-to-mp3  3.12.1.3660  3.12.3.3680       [OUTDATED]  https://www.4kdownload.com/products/product-youtubetomp3

==> Upgrading 4k-youtube-to-mp3 to 3.12.3.3680
==> Backing up metadata
==> Downloading https://dl.4kdownload.com/app/4kyoutubetomp3_3.12.3.dmg

curl: (60) SSL certificate problem: certificate has expired
More details here: https://curl.haxx.se/docs/sslcerts.html

curl failed to verify the legitimacy of the server and therefore could not
establish a secure connection to it. To learn more about this situation and
how to fix it, please visit the web page mentioned above.
Error: Download failed on Cask '4k-youtube-to-mp3' with message: Download failed: https://dl.4kdownload.com/app/4kyoutubetomp3_3.12.3.dmg
==> Restoring old metadata folder

created time in 2 months

issue commentHomebrew/homebrew-cask

App source not there for Spotify (not a zip/gz but dmg)

Weird. It works when I execute brew cu --yes --all --force --verbose. But right after, it fails when trying without the --verbose.

ppo

comment created time in 2 months

issue openedHomebrew/homebrew-cask

App source not there for Spotify (not a zip but dmg)

I read the instructions about source is not there error but they are not clear.

I think it would be good to give a bit more details about manually unpack it. For zip, gz and tar.gz OK but what about dmg files?

I mounted the .dmg file and there is well a Spotify.app file at the root, which should be OK regarding the app 'Spotify.app' found in the spotify.rb cask file. So sorry but I don't understand what's wrong.

General troubleshooting steps

Description of issue

It seems the App source '/usr/local/Caskroom/spotify/latest/Spotify.dmg' is not there.

Command that failed

brew cu --yes --all --force

Output of command with --force --verbose --debug

==> Upgrading spotify to latest
==> Downloading https://download.scdn.co/Spotify.dmg
Already downloaded: /Users/ppo/Library/Caches/Homebrew/downloads/5ef9b045e7e6dfeb70b32abfa9ca2da11e85c9b27ab7f6403658ddb1fcfdc00a--Spotify.dmg
==> No SHA-256 checksum defined for Cask 'spotify', skipping verification.
==> Installing Cask spotify
==> Purging files for version latest of Cask spotify
Error: It seems the App source '/usr/local/Caskroom/spotify/latest/Spotify.dmg' is not there.

created time in 2 months

fork ppo/homebrew-cask

🍻 A CLI workflow for the administration of macOS applications distributed as binaries

https://brew.sh

fork in 2 months

issue commentmicrosoft/vscode

Allow to open a workspace without closing the current window

But with that, it always blindly opens a new window, even if we're on a blank window 😕 (just saying but Atom handles that perfectly)

ppo

comment created time in 2 months

issue closedmicrosoft/vscode-python

User colors for "string.quoted.docstring.multi.python" not applied.

Environment data

  • VS Code version: 1.45.1
  • Extension version (available under the Extensions sidebar): 2020.5.78807

Expected behaviour

Comments enclosed between """ should be displayed using the colors defined in my User/settings.json.

Actual behaviour

Displayed with the colors of string.quoted.single.python.

The command Developer: Inspect Editor Tokens and Scopes provides the following information:

language: python
standard token type: String
textmate scopes:
    [punctuation.definition.string.(begin|end).python]
    string.quoted.docstring.multi.python
    source.python

Steps to reproduce:

In User/settings.json:

  "editor.tokenColorCustomizations": {
    "textMateRules": [{
      "scope": "string.quoted.dosctring.multi.python",
      "settings": {"foreground": "#f00"}
    }, {
      "scope": "string.quoted.dosctring.multi.python punctuation.definition.string.end.python",
      "settings": {"foreground": "#0f0"}
    }, {
      "scope": "string.quoted.dosctring.multi.python punctuation.definition.string.begin.python",
      "settings": {"foreground": "#00f"}
    }]
  }

Remarks

The scopes "scope": "punctuation.definition.string.*.python" (with * being begin or end) work fine.

See https://code.visualstudio.com/docs/cpp/colorization-cpp for more details.

closed time in 3 months

ppo

issue commentmicrosoft/vscode-python

User colors for "string.quoted.docstring.multi.python" not applied.

:open_mouth: well spotted @karrtikr, thanks :smiley:
Sorry, I should have verified that :confused:

ppo

comment created time in 3 months

issue commentmicrosoft/vscode-python

Change block comments from quotes to hash / pound / sharp

I think the "toggle block comment" should be improved to uncomment the whole block when we executed the command with the cursor anywhere inside the comment or having a selection inside the comment.

That would make toggling block comment easier. See #11852.

chromafunk

comment created time in 3 months

issue commentmicrosoft/vscode-python

Change block comments from quotes to hash / pound / sharp

@chromafunk do you know Ctrl+/ for toggle line comment?

Let's first agree on the use cases. And also to use the command description rather than the shortcuts as not the same on all OSes.

Use case 1: single line.
Available commands: Add/remove/toggle line comment

Use case 2: multiple lines.

  • 2.1. With #: Select whole or any parts of the lines, then same "line comment" commands.
  • 2.2. With """: Select the whole lines, then "toggle block comment".

Use case 3: Convert a style of comments to the other (# & """).
Select the whole lines, "remove or toggle line comment", then "toggle block comment". Or the other way around.

chromafunk

comment created time in 3 months

issue commentmicrosoft/vscode-python

Change block comments from quotes to hash / pound / sharp

@chromafunk I agree that # is more often used and there's Ctrl + Shift + / for that purpose.

Maybe I don't understand correctly this request because why change the behavior of Ctrl + Shift + A to act the same way as Ctrl + Shift + /?!

chromafunk

comment created time in 3 months

issue commentfabiospampinato/vscode-diff

Improvement for the list of files (and bug?)

For reference, VS Code issue: API Access to "Open Editors" #15178 (current status: open)

ppo

comment created time in 3 months

issue openedalefragnani/vscode-project-manager

Display group in "list project to open"

Could you please display the group in the list of projects.
Ideally group the projects by group name.

If possible, display the groups and their projects in a tree view, allowing to collapse groups.

created time in 3 months

push eventppo/php-minish

Pascal Polleunus

commit sha 22fba86eaf7ac04100e7d589a115424ba6b4aecd

Bug fixes.

view details

Pascal Polleunus

commit sha 79e42dd26f8558f9b0b2831fd5d3b639df2f1a44

Improve command output.

view details

push time in 3 months

issue openedfabiospampinato/vscode-diff

Copy differences to the other pane

Allow to copy the differences where the cursor is in the active pane to the other pane.

Cf. Atom split-diff.

created time in 3 months

issue commentfabiospampinato/vscode-diff

Ability to edit both editors

Both are editable… at least in VS Code 1.45.1.

dandv

comment created time in 3 months

issue closedfabiospampinato/vscode-diff

Auto-diff files in split view

Automatically diff the files that are opened side-by-side.

Cf. https://atom.io/packages/split-diff

closed time in 3 months

ppo

issue commentfabiospampinato/vscode-diff

Auto-diff files in split view

See #10

ppo

comment created time in 3 months

issue openedfabiospampinato/vscode-diff

Improvement for the list of files (and bug?)

Currently: The list of files to diff with contains all the files in the workspace!
(VS Code 1.45.1 and Diff 1.4.0)

Expected: List only opened files.

Cherry on the cake:

  • If only 2 files opened, immediately execute the diff with the other file.
  • List first the file on the right, then a separator, then all the other opened files ordered as opened from left to right.
  • If in split view, list in the first part (above separator) all the current files of each view. And below the separator, separate the list of files per view.

created time in 3 months

issue commentgit-up/GitUp

get commands executed by gitUp

Too bad… then, could displaying the libgit calls be useful to understand what going on under the hood?

bmailhe

comment created time in 3 months

PR opened gdesnoues/complete-line

Complete review of README

/!\ I changed the settings variables names and their behavior so the code has to be modified accordingly first.

PS: BTW, I had trouble finding this extension because I was looking for "line padding". "Complete Line" is more adapted for this kind of extension, called the same :wink:, refactor11's Complete Line.

+58 -23

0 comment

1 changed file

pr created time in 3 months

push eventppo/complete-line

Pascal Polleunus

commit sha 67020e947a1889ab6de50ee3d4a22cdbb870d7cb

Complete review of README /!\ I changed the settings variables names and their behavior so the code has to be modified accordingly first.

view details

push time in 3 months

fork ppo/complete-line

Keymaps extension for VS Code to automatically complete a comment line with a definite character or with your selection

fork in 3 months

issue commentgdesnoues/complete-line

Fix README

Il y a le même genre d'erreurs dans l'écran de config… au moins t'es consistant :wink:
Donc ce serait bien de faire une petite recherche dans tous les fichiers.

ppo

comment created time in 3 months

issue openedwayou/vscode-todo-highlight

Suggestion: Default settings for Python, Markdown, reStructuredText, TOML, YAML

Python

todohighlight.include: [ "**/*.py", "**/requirements/**/*.txt" ]
todohighlight.exclude: [ "**/.venv/**" ]

Markdown, reStructuredText, TOML, YAML

todohighlight.include: [
  "**/*.md",
  "**/*.rst",
  "**/*.toml",
  "**/*.yml", "**/*.yaml"
]

created time in 3 months

issue commentgdesnoues/complete-line

Suggestion: Repeat last character of the line

If no value (empty string) defined in settings, use last character. Default: empty.

(And same thing for width.)

ppo

comment created time in 3 months

issue openedgit-up/GitUp

Setting: Open/new window maximized

Please add a setting to automatically maximize the window when opening a repository.

created time in 3 months

issue openedmicrosoft/vscode-python

User colors for "string.quoted.docstring.multi.python" not applied.

Environment data

  • VS Code version: 1.45.1
  • Extension version (available under the Extensions sidebar): 2020.5.78807

Expected behaviour

Comments enclosed between """ should be displayed using the colors defined in my User/settings.json.

Actual behaviour

Displayed with the colors of string.quoted.single.python.

The command Developer: Inspect Editor Tokens and Scopes provides the following information:

language: python
standard token type: String
textmate scopes:
    [punctuation.definition.string.(begin|end).python]
    string.quoted.docstring.multi.python
    source.python

Steps to reproduce:

In User/settings.json:

  "editor.tokenColorCustomizations": {
    "textMateRules": [{
      "scope": "string.quoted.dosctring.multi.python",
      "settings": {"foreground": "#f00"}
    }, {
      "scope": "string.quoted.dosctring.multi.python punctuation.definition.string.end.python",
      "settings": {"foreground": "#0f0"}
    }, {
      "scope": "string.quoted.dosctring.multi.python punctuation.definition.string.begin.python",
      "settings": {"foreground": "#00f"}
    }]
  }

Remarks

The scopes "scope": "punctuation.definition.string.*.python" (with * being begin or end) work fine.

created time in 3 months

issue commentmicrosoft/vscode-python

Change block comments from quotes to hash / pound / sharp

No, if you want to do that, use the Line Comment (ctrl + shift + /).

See the issue I just created about block comments: #11852

chromafunk

comment created time in 3 months

issue openedmicrosoft/vscode-python

Improvements for block comment

There should be no spaces by default inside the """.
Example: """Comments on a single line."""

If there's a text selection on multiple lines, the """ should be placed on separated lines above and below the selected lines.
Example:

"""
Comments on
multiple lines.
"""

I think that should be the default but it would be even better if you provide a setting to choose whether the starting quotes must be on a line by itself or not.
Example:

"""Comments on
multiple lines.
"""

See PEP-257

created time in 3 months

issue openedfabiospampinato/vscode-diff

Auto-diff files in split view

Automatically diff the files that are opened side-by-side.

created time in 3 months

issue commentgdesnoues/complete-line

[BUG] Editor rulers not taken into account over 80

It would also make sense to use the Prettier width prettier.printWidth.

wimille

comment created time in 3 months

issue openedgdesnoues/complete-line

Fix README

  • chose > choose
  • repete/repeted > repeat/repeated
  • clic > click

PS: Francophone je suppose? :wink:

created time in 3 months

issue commentgdesnoues/complete-line

[BUG] Editor rulers not taken into account over 80

I don't know if that's the behavior @wimille implemented but it would be great to loop through each ruler value that is > to the line length.

So in your example:

  • Line with less than 90 characters: 90, 110, 120, then back to 90.
  • Line with 90-109 characters: 110, 120, 110.
wimille

comment created time in 3 months

issue openedgdesnoues/complete-line

Suggestion: Repeat last character of the line

Instead of defining the character to repeat in the settings, use the last character of the line.

That way we can repeat any character without having to make a selection… which requires to many actions :wink:

So we can just type // Heading - and hit the command shortcut keys.

created time in 3 months

issue commentmicrosoft/vscode

Allow to open a workspace without closing the current window

@RandomShaper Not working on Mac v1.45.1.

ppo

comment created time in 3 months

issue openedmicrosoft/vscode

Last window is opened when Code is closed with all windows closed.

Issue Type: <b>Bug</b>

Currently: When closing Code with all windows closed, when reopening Code, it opens the last window (or workspace).

Expected behavior: Code should open with an new/empty window (or without any window).

Settings: "window.restoreWindows": "all"

VS Code version: Code - Insiders 1.46.0-insider (6849775440496504e0677ffcf2a46d47ad9130f5, 2020-05-15T09:06:06.454Z) OS version: Darwin x64 19.4.0

<details> <summary>System Info</summary>

Item Value
CPUs Intel(R) Core(TM) i7-7820HQ CPU @ 2.90GHz (8 x 2900)
GPU Status 2d_canvas: enabled<br>flash_3d: enabled<br>flash_stage3d: enabled<br>flash_stage3d_baseline: enabled<br>gpu_compositing: enabled<br>metal: disabled_off<br>multiple_raster_threads: enabled_on<br>oop_rasterization: disabled_off<br>protected_video_decode: unavailable_off<br>rasterization: enabled<br>skia_renderer: disabled_off_ok<br>video_decode: enabled<br>viz_display_compositor: enabled_on<br>viz_hit_test_surface_layer: disabled_off_ok<br>webgl: enabled<br>webgl2: enabled
Load (avg) 3, 3, 3
Memory (System) 16.00GB (1.75GB free)
Process Argv
Screen Reader no
VM 0%

</details>Extensions: none <!-- generated by issue reporter -->

created time in 3 months

issue openedmicrosoft/vscode

Allow to open a workspace without closing the current window

Issue Type: <b>Feature Request</b>

Currently, when opening a workspace (via Open Workspace… and Open Recent), it closes the current window and opens the workspace in a new window.

I doesn't seem to be a bug so I guess it's a "feature" :wink:
So please add a preferences setting to change that behavior.

VS Code version: Code - Insiders 1.46.0-insider (e1d8f5155c0db5ffdc130c9aa0f14efac02dfdfb, 2020-05-13T20:32:52.338Z) OS version: Darwin x64 19.4.0

<!-- generated by issue reporter -->

created time in 3 months

issue commentmicrosoft/vscode

"Unable to resolve workspace folder" for path that includes ~ (tilde)

@aeschli is there a supported way of referencing the home folder in a .code-workspace? (I tried $HOME, ${env:HOME}, and ${env.HOME})
And if not, can we transform this into a feature request? :wink:

phaseOne

comment created time in 3 months

more