Path: csiph.com!3.us.feeder.erje.net!feeder.erje.net!news.linkpendium.com!news.linkpendium.com!panix!usenet.stanford.edu!not-for-mail From: IFo Hancroft Newsgroups: gnu.bash.bug Subject: Feature request: output/send \033]7; file:///the/current/dir\033\\ on directory change Date: Mon, 25 Nov 2019 14:08:04 +0200 Lines: 31 Approved: bug-bash@gnu.org Message-ID: References: NNTP-Posting-Host: lists.gnu.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: usenet.stanford.edu 1574684475 32034 209.51.188.17 (25 Nov 2019 12:21:15 GMT) X-Complaints-To: action@cs.stanford.edu To: bug-bash@gnu.org Envelope-to: bug-bash@gnu.org User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.2.2 In-Reply-To: Content-Language: en-US X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - a2plcpnl0394.prod.iad2.secureserver.net X-AntiAbuse: Original Domain - gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - ifohancroft.com X-Get-Message-Sender-Via: a2plcpnl0394.prod.iad2.secureserver.net: authenticated_id: lists@ifohancroft.com X-Authenticated-Sender: a2plcpnl0394.prod.iad2.secureserver.net: lists@ifohancroft.com X-Source: X-Source-Args: X-Source-Dir: X-CMAE-Envelope: MS4wfJfXkYSm6HhyVdMrdi/LImQossjgzh2CpJpcLGTKArGbIaNmCXJPWhP+5lTeAwIy3fRKlbT0ikv9CC3UnuZztJneGvVi23EYWNEkO5SGCIXOvtZqGjc1 7NME4cWWmn5dyhKyvcGd5k/OMPDNagVqONZC3LjfgKotyyDeCpVCEsvgRCNTElaV+SXvVBmpgM0rUzXEVlz2Rip/7kW6YMrMHYk= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 198.71.225.36 X-BeenThere: bug-bash@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Bug reports for the GNU Bourne Again SHell List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Mailman-Original-Message-ID: X-Mailman-Original-References: Xref: csiph.com gnu.bash.bug:15631 Hi Everyone! I have the following feature request: Output/send \033]7;file:///the/current/dir\033\\ on directory change. This can then be used by terminals for example for the feature to be able to open a new tab/terminal in the same directory. Currently, the way to do it is to use the PROMPT_COMMAND variable to output but I believe this should be left for the user to use and terminals that want to have such feature have to currently ship their own shell script that assigns the variable but also preserves what was set there by distros (usually an ANSI escape sequence to update the terminal title) and there is no place that distros agree on for reading scripts from for non-login shells and it is often put in the wrong place..... It's a shit show. I don't think its the terminal's job to tell itself when the directory changes, also it is the shell that knows when it does change. By having it in the shell it will be a clean and streamlined solution that all terminals that want, can use the feature and the whole shitshow that's currently going can be avoided. TL;DR: It makes sense for the shell to output it on directory change. Everyone can take advantage of that. It will be clean solution. Best Regards, IFo Hancroft