Ukwakha isiphequluli sefayela seThunar ngeZenity

 

Lo mbhalo washicilelwa kudala ku ibhulogi yakudala mayelana neXfce, kusekelwe kwesinye isihloko esishicilelwe ku- Xubuntu blog futhi ngibashiya lapha futhi.

Esizokwenza ukudala usesho lwefayela IThunar usebenzisa Ubuningi. Into yokuqala okufanele siyenze ukufaka i-zenity:

$ sudo aptitude install zenity

Ngemuva kwalokho sivula ukuphela bese sibeka:

$ mkdir ~/.bash-scripts/

Ngale ndlela sakha umkhombandlela oqukethe iskripthi esizokwenza isenzo uqobo. Manje sakha ifayela elibizwa nge- cinga amafayela ngaphakathi ngokulandelayo:

mousepad ~/.bash-scripts/search-for-files

futhi sinamathisela lokhu ngaphakathi:

#! / bin / bash # search-for-files # shintsha lesi sibalo ukuze sivumelane nawe - Ngithola ubunono bufa ngemiphumela engaba ngu-1000 kepha i-YMMV maxresults = 500 # futhi, shintsha indlela eya kusithonjana ukuze ivumelane nawe. Kepha ngubani ongayithandi itango? window_icon = "/ usr / share / icons / Tango / scalable / actions / search.svg" # lo mbhalo uzosebenza kunoma iyiphi imvelo ene-bash ne-zenity, ngakho-ke umphathi wefayela uphansi kwakho! ungangeza izimpikiswano ezengeziwe entanjeni inqobo nje uma impikiswano yokugcina iyindlela yefolda oyivula filemanager = "thunar" window_title = "Sesha Amafayela" srcPath = "$ *" uma! [-d "$ srcPath"]; bese cd ~ / srcPath = `zenity --file-selection --directory --title =" $ window_title - Bheka kufolda "--window-icon =" $ window_icon "` fi if [-d "$ srcPath"] ; ke fragment = `zenity --entry --title =" $ window_title - Igama liqukethe: "--window-icon =" $ window_icon "--text =" Izintambo zokusesha ezingaphansi kwezinhlamvu ezi-2 azinakwa "uma! [$ {# fragment} -lt 2]; bese (echo 10 O = $ IFS IFS = $ '\ n' files = (`find" $ srcPath "-iname" * $ fragment * "-printf \"% Y \ "\"% f \ "\ \" % k \ KB \ "\ \"% t \ "\ \"% h \ "\\\ n | ikhanda -n $ maxresult`) IFS = $ O echo 100 selected =` eval zenity --list --title = \ "$ {# amafayela [@]} Amafayela Atholakele - $ window_title \" --window-icon = "$ window_icon" --width = "600" --height = "400" --text = \ "Imiphumela yosesho : \ "--print-column = 5 - ikholomu \" Type \ "- ikholomu \" Igama \ "- ikholomu \" Usayizi \ "- ikholomu \" Usuku olulungisiwe \ "- ikholomu \" Indlela \ "$ {files [@]}` if [-e "$ selected"]; bese "$ filemanager" "$ selected"; fi) | i-zenity --progress - auto-close --pulsate --title = "Iyasesha ..." --window-icon = "$ window_icon" --text = "Iseshela \" $ fragment \ "" fi fi exit

futhi siyinika izimvume zokwenza:

chmod a+x ~/.bash-scripts/search-for-files

Manje senza isipele sefayela le-uca.xml:

$ sudo cp /etc/xdg/Thunar/uca.xml /etc/xdg/Thunar/uca.xml.old

esizokubeka ekugcineni lokhu:

<action>
<icon>/usr/share/icons/Tango/scalable/actions/search.svg</icon>
<name>Search for Files</name>
<command>bash ~/.bash-scripts/search-for-files %f</command>
<description>Search this folder for files</description>
<patterns>*</patterns>
<directories/>
</action>

Manje esisele nakho ukuvula IThunar » Hlela » Setha ukwenza ngokwezifiso futhi sakha entsha. Futhi sigcwalisa izinkambu ezilandelayo:

Kuthebhu Okuyisisekelo:
Inani: Injini yokusesha
Incazelo: Injini yokusesha
Umyalo: bash ~ / .bash-imibhalo / usesho lwamafayela% f
Isithonjana: Sikhetha esithanda kakhulu.

Ukuhlala kanjena:

Manje kuthebhu Izimo kuvela izinkambu ezilandelayo:
Iphethini lefayela: *
Kuvela uma ukukhetha kuqukethe: Isiqondisi.

Futhi kubukeka kanjena:

Manje ku IThunar lapho sivula imenyu ngokuchofoza kwesokudla, inketho yokusesha ayiveli:

Futhi uma sichofoza kuso, kuzovela iwindi lapho singafaka khona izindlela zokusesha:

Lapho siqala ukusesha sizobona into enjengale:

ekugcineni umphumela wako:

Uma sichofoza kabili emphumeleni, iwindi le- IThunar nefolda lapho kutholakala khona ifayili. Ngale ndlela sinikeza ideskithophu yethu amandla amaningi kakhulu Xfce.


Okuqukethwe yi-athikili kunamathela ezimisweni zethu ze izimiso zokuhlelela. Ukubika iphutha chofoza lapha.

Amazwana ayi-9, shiya okwakho

Shiya umbono wakho

Ikheli lakho le ngeke ishicilelwe. Ezidingekayo ibhalwe nge *

*

*

  1. Ubhekele imininingwane: Miguel Ángel Gatón
  2. Inhloso yedatha: Lawula Ugaxekile, ukuphathwa kwamazwana.
  3. Ukusemthethweni: Imvume yakho
  4. Ukuxhumana kwemininingwane: Imininingwane ngeke idluliselwe kubantu besithathu ngaphandle kwesibopho esisemthethweni.
  5. Isitoreji sedatha: Idatabase ebanjwe yi-Occentus Networks (EU)
  6. Amalungelo: Nganoma yisiphi isikhathi ungakhawulela, uthole futhi ususe imininingwane yakho.

  1.   alez kusho

    Inkinga engaka! Hehe, nakhu unenye indlela yokufeza into efanayo elula kimi.
    http://marksnotebook.com/ubuntu/how-add-built-search-thunar-using-catfish
    Ngokuxabana kwe-Unity neGnome3 abantu abaningi baya eXfce bese beqala ukuthola izimangaliso zeThunar ... Ngokuzimisela, lolo hlelo luyamangalisa. Ngiyabonga kakhulu ngebhulogi, ngiyilandela njalo noma ngabe ngiyaqala ukuthumela.

    1.    I-elav <° Linux kusho

      Siyakwamukela alez:
      Hahaha akuyona into eyinkimbinkimbi, ilula kakhulu. Kuyiqiniso ukuthi ngeCatFish singaba nethuluzi lokusesha elinamandla, kepha akukho lutho, okungenani angilisebenzisi ngoba uhlelo olulodwa lokufaka.

  2.   oscar kusho

    Ngibonga i-elav, i-tuto enhle kakhulu, ngizoyisindisa naleyo osuyishicilele, ngicabanga ukuthi i-XFCE inekusasa eliningi njengenye indlela, okungukuthi, inqobo nje uma ingagijimeli phezulu ekusetshenzisweni kweRam.

  3.   lemusic kusho

    Kuhle kakhulu, ukuyizama 😉

  4.   matovitch kusho

    Angisiqondi iSpanishi, kepha ngiyaqonda ibash.
    Ngaqala ukusebenzisa into efanayo. Ngonge isikhathi esiningi ngibonga ikhodi yakho.
    Ngiyabonga. Ngiyabonga. UMerci de France.

  5.   Luis kusho

    Kunenkinga enkulu ngalo mbhalo ...

    Uma usesha okuthile okungekho lapho-ke injini yokusesha ihlala iluphu engapheli futhi okuwukuphela kwendlela yokuyivala ngokubulala inqubo.

    1.    Alexander Morales kusho

      Ngicabanga ukuthi isixazululo kuleso simo kungaba ukwenza uma lokho kusebenza uma kungekho amafayela kuqala, futhi uma kukhona okuseshwa, the

  6.   Raul kusho

    Ngiyabonga kakhulu, kuhamba ibanga elide futhi nokwenza enye isengezo se-thunar.

  7.   Victor kusho

    Ngikuthole kuhle kakhulu. kusebenza kakhulu. Ngibonga kakhulu.