{"action":"created","issue":{"url":"https://api.github.com/repos/patacrep/patacrep/issues/204","repository_url":"https://api.github.com/repos/patacrep/patacrep","labels_url":"https://api.github.com/repos/patacrep/patacrep/issues/204/labels{/name}","comments_url":"https://api.github.com/repos/patacrep/patacrep/issues/204/comments","events_url":"https://api.github.com/repos/patacrep/patacrep/issues/204/events","html_url":"https://github.com/patacrep/patacrep/issues/204","id":134264891,"number":204,"title":"cwd, songdir & datadir","user":{"login":"oliverpool","id":3864879,"avatar_url":"https://avatars.githubusercontent.com/u/3864879?v=3","gravatar_id":"","url":"https://api.github.com/users/oliverpool","html_url":"https://github.com/oliverpool","followers_url":"https://api.github.com/users/oliverpool/followers","following_url":"https://api.github.com/users/oliverpool/following{/other_user}","gists_url":"https://api.github.com/users/oliverpool/gists{/gist_id}","starred_url":"https://api.github.com/users/oliverpool/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oliverpool/subscriptions","organizations_url":"https://api.github.com/users/oliverpool/orgs","repos_url":"https://api.github.com/users/oliverpool/repos","events_url":"https://api.github.com/users/oliverpool/events{/privacy}","received_events_url":"https://api.github.com/users/oliverpool/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/patacrep/patacrep/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-02-17T12:21:42Z","updated_at":"2016-02-22T17:02:13Z","closed_at":null,"body":"Je trouve la situation au niveau des `songdir`, des `datadir` et de `cwd` assez confuse.\r\n\r\n*En me basant sur la branche `yaml_ext` (PR #203)*\r\n\r\nLes datadirs sont composés des dossiers spécifiés dans le fichier.yaml, ainsi que le dossier où réside le fichier.yaml.\r\n\r\nLes songdirs sont les sous-dossiers `songs` des répertoires précédents.\r\n\r\n`cwd` ajoute en tête des songdir, le sous-dossier relatif au répertoire du fichier.yaml (le comportement en cas de `cwd` imbriqués est d'ailleurs visiblement erroné).\r\n\r\n---\r\n\r\nA cet effet, je propose :\r\n- de continuer à rajouter de manière automatique le dossier du fichier.yaml à la liste des datadir (comme ça on peut dire qu'un dossier typique de carnet comporte un fichier.yaml et un dossier `songs`)\r\n- d'arrêter d'ajouter le traitement particulier de `cwd` (et de bien préciser dans la doc, que `cwd` est relatif aux dossiers `songs`)\r\n"},"comment":{"url":"https://api.github.com/repos/patacrep/patacrep/issues/comments/187268550","html_url":"https://github.com/patacrep/patacrep/issues/204#issuecomment-187268550","issue_url":"https://api.github.com/repos/patacrep/patacrep/issues/204","id":187268550,"user":{"login":"oliverpool","id":3864879,"avatar_url":"https://avatars.githubusercontent.com/u/3864879?v=3","gravatar_id":"","url":"https://api.github.com/users/oliverpool","html_url":"https://github.com/oliverpool","followers_url":"https://api.github.com/users/oliverpool/followers","following_url":"https://api.github.com/users/oliverpool/following{/other_user}","gists_url":"https://api.github.com/users/oliverpool/gists{/gist_id}","starred_url":"https://api.github.com/users/oliverpool/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oliverpool/subscriptions","organizations_url":"https://api.github.com/users/oliverpool/orgs","repos_url":"https://api.github.com/users/oliverpool/repos","events_url":"https://api.github.com/users/oliverpool/events{/privacy}","received_events_url":"https://api.github.com/users/oliverpool/received_events","type":"User","site_admin":false},"created_at":"2016-02-22T17:02:13Z","updated_at":"2016-02-22T17:02:13Z","body":"> Est-ce que renommer `cwd` en `csd` (`change song directory`) serait alors pertinent ?\r\n\r\nJe proposerai même `cd`: pour les utilisateurs de la ligne de commande, ça devient très compréhensible (la seule subtilité étant le répertoire de départ)."}}