The county judge shall have power to issue writs, and to try matters, of habeas corpus on application to him therefor, or when made returnable before him by a superior judge. He shall also have the power to order the issuance of writs of certiorari, supersedeas, attachments, and other remedial writs in all cases pending in, or within the jurisdiction of, his court. He shall have the authority to issue search warrants in his county returnable to his own court or to any court of a justice of the peace within his county in the same manner as is provided by law for the issuance of search warrants by justices of the peace. In all cases pending in, or within the jurisdiction of, his court, he shall have, in term time, and in vacation, the power to order, do or determine to the same extent and in the same manner as a justice of the peace or a circuit judge or a chancellor could do in term time or in vacation in such cases. But he shall not have original power to issue writs of injunction, or other remedial writs in equity or in law except in those cases hereinabove specified as being within his jurisdiction: Provided, however, that when any judge or chancellor authorized to issue such writs of injunction, or any other equitable or legal remedial writs hereinabove reserved, shall so direct in writing the hearing of application therefor may be by him referred to the county judge, in which event the said direction of the superior judge shall vest in the said county judge all authority to take such action on said application as the said superior judge could have taken under the right and the law, had the said application been at all times before the said superior judge. The jurisdiction authorized under the foregoing proviso shall cease upon the denying or granting of the application.